323件ヒット
[1-100件を表示]
(0.033秒)
種類
- インスタンスメソッド (250)
- 文書 (37)
- クラス (12)
- ライブラリ (12)
- 特異メソッド (12)
クラス
-
CSV
:: Table (24) - IO (24)
- Object (30)
- Pathname (84)
- Thread (40)
-
Thread
:: Backtrace :: Location (24) -
Zlib
:: GzipWriter (24)
オブジェクト
-
Readline
:: HISTORY (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (12)
- Location (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
add
_ trace _ func (12) - binread (12)
- inspect (20)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- rss (12)
-
ruby 1
. 6 feature (12) -
set
_ trace _ func (12) - syswrite (12)
- then (14)
-
to
_ csv (12) -
world
_ readable? (12) - write (24)
-
yield
_ self (16)
検索結果
先頭5件
-
Readline
:: HISTORY . to _ s -> "HISTORY" (21107.0) -
文字列"HISTORY"を返します。
...文字列"HISTORY"を返します。
例:
require 'readline'
Readline::HISTORY.to_s #=> "HISTORY"... -
Thread
:: Backtrace :: Location # to _ s -> String (21107.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 (18139.0) -
IO.read(self.to_s, *args)と同じです。
...IO.read(self.to_s, *args)と同じです。
@see IO.read... -
Thread
# to _ s -> String (18101.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 (15107.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 (6116.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 (6116.0) -
FileTest.readable?(self.to_s) と同じです。
...FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable?... -
Pathname
# readable _ real? -> bool (6116.0) -
FileTest.readable_real?(self.to_s) と同じです。
...FileTest.readable_real?(self.to_s) と同じです。
@see FileTest.#readable_real?... -
Pathname
# readlines(*args) -> [String] (6116.0) -
IO.readlines(self.to_s, *args)と同じです。
...IO.readlines(self.to_s, *args)と同じです。
@see IO.readlines...