るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.095秒)
トップページ > クエリ:IO.new[x] > クエリ:dump[x] > クエリ:existing![x] > クエリ:NEWS for Ruby 2.6.0[x] > クエリ:table[x] > クラス:Object[x]

別のキーワード

  1. _builtin slice!
  2. _builtin reject!
  3. _builtin select!
  4. string slice!
  5. argf.class lines

ライブラリ

検索結果

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

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

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

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

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