5件ヒット
[1-5件を表示]
(0.174秒)
クラス
検索結果
先頭5件
-
Thread
:: Backtrace :: Location # to _ s -> String (81325.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し
ます。
//emlist[例][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... -
OpenSSL
:: X509 :: Certificate # to _ s -> String (72307.0) -
PEM 形式の文字列を返します。
PEM 形式の文字列を返します。 -
Pathname
# truncate(length) -> 0 (45952.0) -
File.truncate(self.to_s, length) と同じです。
File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate -
Thread
:: Backtrace :: Location # inspect -> String (27052.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文
字列に変換したオブジェクトを返します。
//emlist[例][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.inspect
end
# => "path/to/foo.rb:5:in ... -
OpenSSL
:: X509 :: Certificate # to _ pem -> String (27007.0) -
PEM 形式の文字列を返します。
PEM 形式の文字列を返します。