227件ヒット
[1-100件を表示]
(0.036秒)
クラス
-
CSV
:: Table (22) - IO (22)
- Object (26)
- Pathname (77)
- Thread (36)
-
Thread
:: Backtrace :: Location (22) -
Zlib
:: GzipWriter (22)
キーワード
- << (11)
-
add
_ trace _ func (11) - binread (11)
- inspect (18)
- readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (11)
-
set
_ trace _ func (11) - syswrite (11)
- then (12)
-
to
_ csv (11) -
world
_ readable? (11) - write (22)
-
yield
_ self (14)
検索結果
先頭5件
-
Thread
:: Backtrace :: Location # to _ s -> String (21108.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...mlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo.rb:9:in `new'
# path/to/foo.rb:9:in `<main>'
//}... -
Pathname
# read(*args) -> String | nil (18140.0) -
IO.read(self.to_s, *args)と同じです。
...IO.read(self.to_s, *args)と同じです。
@see IO.read... -
Thread
# to _ s -> String (18102.0) -
自身を人間が読める形式に変換した文字列を返します。
...自身を人間が読める形式に変換した文字列を返します。
//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//}... -
CSV
:: Table # to _ s(options = Hash . new) -> String (15108.0) -
CSV の文字列に変換して返します。
...ションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"
//}... -
Pathname
# binread(*args) -> String | nil (6117.0) -
IO.binread(self.to_s, *args)と同じです。
....binread(self.to_s, *args)と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(20,......10) # => "ne one\nThis is line "
//}
@see IO.binread... -
Pathname
# readable? -> bool (6117.0) -
FileTest.readable?(self.to_s) と同じです。
...FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable?... -
Pathname
# readable _ real? -> bool (6117.0) -
FileTest.readable_real?(self.to_s) と同じです。
...FileTest.readable_real?(self.to_s) と同じです。
@see FileTest.#readable_real?... -
Pathname
# readlines(*args) -> [String] (6117.0) -
IO.readlines(self.to_s, *args)と同じです。
...IO.readlines(self.to_s, *args)と同じです。
@see IO.readlines... -
Pathname
# readlink -> Pathname (6117.0) -
Pathname.new(File.readlink(self.to_s)) と同じです。
...Pathname.new(File.readlink(self.to_s)) と同じです。
@see File.readlink... -
Pathname
# world _ readable? -> bool (6117.0) -
FileTest.world_readable?(self.to_s) と同じです。
...FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable?...