るりまサーチ

最速Rubyリファレンスマニュアル検索!
223件ヒット [101-200件を表示] (0.125秒)

別のキーワード

  1. objectspace each_object
  2. _builtin each_object
  3. object send
  4. object enum_for
  5. object to_enum

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 > >>

OptionParser::ParseError#inspect -> String (18114.0)

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

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

@return 文字列を返します。

@see Object#inspect...

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

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

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

@see Object#inspect...

WIN32OLE_TYPE#inspect -> String (18114.0)

selfを説明的な文字列で表現します。

...ます。

@return "#<WIN32OLE_TYPE"とWIN32OLE_TYPE#to_sの結果を「:」で結合
し、「>」で閉じた文字列を返します。

x = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts x.inspect #=> #<WIN32OLE_TYPE:Worksheet>

@see WIN32OLE_TYPE#to_s...

IRB::Context#inspect_mode -> object | nil (6209.0)

実行結果の出力方式を返します。

...実行結果の出力方式を返します。

@see IRB::Context#inspect_mode=...

Method#to_s -> String (3032.0)

self を読みやすい文字列として返します。

...式の文字列を返します。

#<Method: klass1(klass2)#method> (形式1)

klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。

klass2...
...# スーパークラスのクラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar.foo>

# 以下は(形式1)の出力になる
module Baz
def baz
end
end

class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: Object(Baz)#baz>
//}

@see Object#inspect...
...の文字列を返します。

#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)

klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。

klass2...
...ラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>

# 以下は(形式1)の出力になる
module Baz
def baz
end
end

class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}

@see Object#inspect...

絞り込み条件を変える

OpenStruct#to_s -> String (3014.0)

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

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

@see Object#inspect...

MiniTest::Assertions#mu_pp(object) -> String (140.0)

Object#inspect した結果のエンコーディングを変更して返します。

...
Object
#inspect した結果のエンコーディングを変更して返します。

エンコーディングは Encoding.default_external に変更されます。

@param object 任意のオブジェクトを指定します。...

IRB::OutputMethod#pp(*objs) -> object (118.0)

各 obj を inspect した文字列を self に出力し、最後に改行を出力します。

...各 obj を inspect した文字列を self に出力し、最後に改行を出力します。

@param objs 任意のオブジェクトを指定します。...

IRB::OutputMethod#ppx(prefix, *objs) -> object (118.0)

引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行 を出力します。

...引数 prefix + 各 obj を inspect した文字列を self に出力し、最後に改行
を出力します。

@param prefix 各 obj の先頭に追記する文字列を指定します。

@param objs 任意のオブジェクトを指定します。...

UnboundMethod#bind_call(recv, *args) -> object (109.0)

self を recv に bind して args を引数として呼び出します。

...self を recv に bind して args を引数として呼び出します。

self.bind(recv).call(*args) と同じ意味です。

//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}

@see UnboundMethod#bind, Method#call...

絞り込み条件を変える

UnboundMethod#bind_call(recv, *args) { ... } -> object (109.0)

self を recv に bind して args を引数として呼び出します。

...self を recv に bind して args を引数として呼び出します。

self.bind(recv).call(*args) と同じ意味です。

//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}

@see UnboundMethod#bind, Method#call...

Thread#[](name) -> object | nil (108.0)

name に対応したスレッドに固有のデータを取り出します。 name に対応するスレッド固有データがなければ nil を返し ます。

...name"] = "A" },
Thread.new { Thread.current[:name] = "B" },
Thread.new { Thread.current["name"] = "C" }
].each do |th|
th.join
puts "#{th.inspect}: #{th[:name]}"
end

# => #<Thread:0x00000002a54220 dead>: A
# => #<Thread:0x00000002a541a8 dead>: B
# => #<Thread:0x00000002a54130 dead>: C
//}...
<< < 1 2 3 > >>