るりまサーチ

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

別のキーワード

  1. win32ole ole_show_help
  2. win32ole ole_obj_help
  3. win32ole ole_method_help
  4. irb/help print_usage
  5. un help

種類

キーワード

検索結果

NEWS for Ruby 3.0.0 (294.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...", "f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end
//}

* Endless method definition is added. [EXPERIMENTAL]
16746

//emlist{
def square(x) = x * x
//}

* Interpolated String literals are no lo...
...instead of
a warning.

== Command line options

=== `--help` option

When the environment variable `RUBY_PAGER` or `PAGER` is present and has
a non-empty value, and the standard input and output are tty, the `--help`
option shows the help message via the pager designated by the value.
16754

===...
...* Kernel#eval when called with two arguments will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352
* Kernel#lambda now warns if called without a literal block. 15973
* Kernel.sleep invokes the scheduler hook `#kernel_sleep(...)` in a non-blocking execution...

irb (54.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...n に設定する
(ユーザは利用すべきではない)
-v, --version irb のバージョンを表示する
-h, --help irb のヘルプを表示する
-- 以降のコマンドライン引数をオプションとして扱わない

=== irb の...
...irb の設定をまとめて設定することができます。

以下に例を示します。

$ irb
irb(main):001:0> IRB.conf[:IRB_RC] = lambda {|conf| conf.prompt_i = "> " }
=> #<Proc:0x00002a95fa3fd8@(irb):2>
irb(main):002:0> irb
>

=== irb の使用例

irb のいろいろな使用...
...so,*.o,*.dll など)を指定した場合は単純に require さ
れます。

: help(*names)
: irb_help(*names)

RI から Ruby のドキュメントを参照します。

//emlist{
irb(main):001:0> help String#match
...
//}

names を指定しなかった場合は、RI を対話的な...