るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.168秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:i[x] > クエリ:@[x] > クラス:Object[x] > クエリ:display[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. kernel $-i
  5. ipaddr to_i

ライブラリ

検索結果

Object#display(out = $stdout) -> nil (24233.0)

オブジェクトを out に出力します。

...//emlist[][ruby]{
class Object
def display(out = $stdout)
out.write self
nil
end
end
//}

@
param out 出力先のIOオブジェクトです。指定しない場合は標準出力に出力されます。
@
return nil を返します。

//emlist[][ruby]{
Object
.new.display #=> #<Object:0xb...
...b0210>
//}

@
see $stdout...