るりまサーチ

最速Rubyリファレンスマニュアル検索!
1704件ヒット [201-300件を表示] (0.141秒)
トップページ > クエリ:r[x] > クエリ:inspect[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils rm_r

ライブラリ

モジュール

オブジェクト

検索結果

<< < 1 2 3 4 5 ... > >>

Regexp#inspect -> String (21207.0)

Regexp#to_s より自然な文字列を返します。

...Regexp#to_s より自然な文字列を返します。

//emlist[例][ruby]{
p /^ugou.*?/i.to_s # => "(?i-mx:^ugou.*?)"
p /^ugou.*?/i.inspect # => "/^ugou.*?/i"
//}

@see Regexp#to_s...

RubyVM::AbstractSyntaxTree::Node#inspect -> String (21207.0)

self のデバッグ用の情報を含んだ文字列を返します。

...self のデバッグ用の情報を含んだ文字列を返します。

//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}...

Shell::Filter#inspect -> String (21207.0)

オブジェクトを人間が読める形式に変換した文字列を返します。

...オブジェクトを人間が読める形式に変換した文字列を返します。

@see Object#inspect...

Struct#inspect -> String (21207.0)

self の内容を人間に読みやすい文字列にして返します。

...の記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。

//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith...
...", "123 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}...

Thread::Backtrace::Location#inspect -> String (21207.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).loc...
...ations.map do |call|
puts call.inspect
end

# => "path/to/foo.rb:5:in `initialize'"
# "path/to/foo.rb:9:in `new'"
# "path/to/foo.rb:9:in `<main>'"
//}...

絞り込み条件を変える

TracePoint#inspect -> String (21207.0)

self の状態を人間に読みやすい文字列にして返します。

...self の状態を人間に読みやすい文字列にして返します。

//emlist[例][ruby]{
def foo(ret)
r
et
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}...

TrueClass#inspect -> String (21207.0)

常に文字列 "true" を返します。

...常に文字列 "true" を返します。

//emlist[例][ruby]{
true.inspect # => "true"
//}...

ARGF.class#inspect -> String (21201.0)

常に文字列 "ARGF" を返します。

...常に文字列 "ARGF" を返します。...

Encoding::Converter#inspect -> String (21201.0)

Encoding::Converter オブジェクトの情報を簡単に表示します。

...Encoding::Converter オブジェクトの情報を簡単に表示します。

@return 変換器の情報を簡単に可視化した文字列です。...

Enumerator::ArithmeticSequence#inspect -> String (21201.0)

自身を人間が読みやすい形の文字列表現にして返します。

自身を人間が読みやすい形の文字列表現にして返します。

絞り込み条件を変える

Enumerator::Chain#inspect -> String (21201.0)

self を人間が読みやすい形式で文字列として返します。

self を人間が読みやすい形式で文字列として返します。
<< < 1 2 3 4 5 ... > >>