るりまサーチ

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.005秒)
トップページ > クラス:Object[x] > クエリ:display[x]

ライブラリ

検索結果

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

オブジェクトを out に出力します。以下のように定義されています。

...す。

class Object
def display(out = $stdout)
out.print self.to_s
nil
end
end

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

Object
.new.display #=> #<Object:0xbb0210>

@see...