るりまサーチ

最速Rubyリファレンスマニュアル検索!
271件ヒット [1-100件を表示] (0.096秒)
トップページ > クエリ:>[x] > クエリ:to_s[x] > クエリ:read[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

ライブラリ

クラス

オブジェクト

検索結果

<< 1 2 3 > >>

Readline::HISTORY.to_s -> "HISTORY" (21207.0)

文字列"HISTORY"を返します。

...文字列"HISTORY"を返します。

例:

require 'readline'
Read
line::HISTORY.to_s #=> "HISTORY"...

Thread::Backtrace::Location#to_s -> String (21207.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 (18239.0)

IO.read(self.to_s, *args)と同じです。

...IO.read(self.to_s, *args)と同じです。


@see IO.read...

Thread#to_s -> String (18201.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 (15207.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 (6216.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 (6216.0)

FileTest.readable?(self.to_s) と同じです。

...FileTest.readable?(self.to_s) と同じです。


@see FileTest.#readable?...

Pathname#readable_real? -> bool (6216.0)

FileTest.readable_real?(self.to_s) と同じです。

...FileTest.readable_real?(self.to_s) と同じです。


@see FileTest.#readable_real?...

Pathname#readlines(*args) -> [String] (6216.0)

IO.readlines(self.to_s, *args)と同じです。

...IO.readlines(self.to_s, *args)と同じです。


@see IO.readlines...

Pathname#readlink -> Pathname (6216.0)

Pathname.new(File.readlink(self.to_s)) と同じです。

...Pathname.new(File.readlink(self.to_s)) と同じです。


@see File.readlink...

絞り込み条件を変える

<< 1 2 3 > >>