るりまサーチ

最速Rubyリファレンスマニュアル検索!
227件ヒット [1-100件を表示] (0.036秒)

別のキーワード

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

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 > >>

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?...

絞り込み条件を変える

<< 1 2 3 > >>