るりまサーチ

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

別のキーワード

  1. io popen
  2. io pipe
  3. io each_line
  4. io readlines
  5. io each

ライブラリ

クラス

キーワード

検索結果

Object#display(out = $stdout) -> nil (24319.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 #=> #<Objec...

irb/completion (12012.0)

irb の completion 機能を提供するライブラリです。

...irb の completion 機能を提供するライブラリです。

=== 使い方

$ irb -r irb/completion

とするか, ~/.irbrc 中に

require "irb/completion"

を入れてください.
i
rb実行中に require "irb/completion" してもよいです.

i
rb 実行中に [Tab] を押すとコ...
...全に補完します.

i
rb(main):001:0> in
i
n inspect instance_eval
i
nclude install_alias_method instance_of?
i
nitialize install_aliases instance_variables
i
rb(main):001:0> inspect
"main"
i
rb(main):002:0> foo = Objec...
...to?
foo.__id__ foo.inspect foo.send
foo.__send__ foo.instance_eval foo.singleton_methods
foo.class foo.instance_of? foo.taint
foo.clone foo.instance_variables foo.tainted?
foo.display foo.is_a?...

test/unit (6132.0)

ユニットテストを行うためのライブラリです。

...してください。

* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/

なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある訳で...
...グフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html

=== 使い方

Test::Unit は以下のように使います。

まずテスト対象のソ...
...tions, 1 failures, 0 errors, 0 skips

-
-name=test_barのような指定は行えません。

以下のようにすると help も表示されます。

$ ruby test_foo.rb --help
Usage: test_foo [options]
minitest options:
-
h, --help Display this help.
-
s, --s...