るりまサーチ

最速Rubyリファレンスマニュアル検索!
65件ヒット [1-65件を表示] (0.030秒)

別のキーワード

  1. kernel exec
  2. kernel spawn
  3. kernel system
  4. kernel open
  5. kernel fail

ライブラリ

モジュール

検索結果

Kernel#help -> () (39107.0)

ヘルプメッセージを表示します。

...ヘルプメッセージを表示します。


ruby -run -e help [COMMAND]...

このマニュアルのヘルプ (23018.0)

このマニュアルのヘルプ === 記号の説明

...ger」って何?
size メソッドは整数を返すという意味です。

: Kernel.#require の .# って何?
「.#」はモジュール関数であることを表します。「Kernel.#require」は
Kernel のモジュール関数である require 」という意味です。

: String#...

NEWS for Ruby 2.6.0 (90.0)

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

...従来でも eval("[__FILE__, __LINE__]", binding) とすることでこれらの情報は得られましたが、
将来的に Kernel.#eval は binding のソースコード行を無視する変更を予定しているため 4352、
この新しいメソッドを用い...
...'x' が追加されました。 11258

* Kernel
* 別名
* Object#then が Object#yield_self の別名として追加されました。 14594
* 新規オプション
* Kernel.#Complex, Kernel.#Float, Kernel.#Integer,
Kernel
.#Rational にエラー処理方法を指定...
...ラインオプションが追加されました。
「--jit-verbose=1」が調査に有用です。
他のオプションは「ruby --help」を参照してください。
* 機械語を生成するため、この JIT コンパイラはインタプリタをビルドするのに使...

NEWS for Ruby 3.0.0 (84.0)

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

...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

===...
...wait(io, events, timeout)` in a non-blocking execution context. 16786
* Kernel
* Kernel#clone when called with the `freeze: false` keyword will call `#initialize_clone` with the `freeze: false` keyword. 14266
* Kernel#clone when called with the `freeze: true` keyword will call `#initialize...
...s unfrozen. 16175
* 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-...

irb (54.0)

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

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

=== irb の...
...f[:PROMPT_MODE] = :MY_PROMPT

PROMPT_I, PROMPT_S, PROMPT_C にはフォーマット文字列を指定します。
フォーマット文字列では Kernel.#printf のように
「%」を用いた記法が使えます。
フォーマット文字列で使用可能な記法は以下の通りです。...
...
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x' for main:Object
from (irb#1):1:in `Kernel#binding'

起動時のインタプリタでローカル変数 x を定義しましたが、
「irb」でサブ irb を起動すると、
ローカ...

絞り込み条件を変える

rubygems/commands/lock_command (22.0)

指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。

...要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。

Usage: gem lock GEMNAME-VERSION [GEMNAME-VERSION ...] [options]
Options:
-s, --[no-]strict 依存関係を満たせない場合に失敗します
Common Options:
-h, --help...

Rubyの起動 (12.0)

Rubyの起動 * cmd_option * shebang

...ィールドセパレータ($;)に regexp をセットします。

: -h

コマンドラインオプションの概要を表示します。

: --help

コマンドラインオプションの概要を表示します。-h よりも詳しい情報が表示されます。

: -i[extension]

引数...
...cho matz | ruby -p -e '$_.tr! "a-z", "A-Z"'
MATZ
//}

: -r feature

スクリプト実行前に feature で指定されるライブラリを
Kernel
.#require します。
`-n'オプション、`-p'オプションとともに使う時に特に有効です。

: -s

スクリプト名に続...