46件ヒット
[1-46件を表示]
(0.010秒)
種類
- 文書 (22)
- インスタンスメソッド (12)
- ライブラリ (12)
ライブラリ
-
irb
/ context (12)
クラス
-
IRB
:: Context (12)
キーワード
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
inspect
_ mode= (12)
検索結果
先頭5件
-
irb (39622.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......す。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:......_mode] 実行結果の出力方式
irb のプロンプト中では conf.inspect_mode で、.irbrc 中では
IRB.conf[:INSPECT_MODE] に以下のいずれかの値を設定する事で、結果出力の
方式を変更する事ができます。
: false, :to_s, :raw
出力結果を to_s した... -
IRB
:: Context # inspect _ mode=(opt) (3012.0) -
実行結果の出力方式を opt に設定します。
...実行結果の出力方式を opt に設定します。
@param opt 以下のいずれかを指定します。
: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出......力結果を pretty_inspect したものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にしたものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marshal.#dump したものを表示します。
@see lib:irb#inspect_mode... -
NEWS for Ruby 2
. 5 . 0 (36.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ink_local? を追加 10912
* irb
* バックトレースとエラーメッセージを逆順で表示するようにしました 8661 [実験的]
* binding.irb を実行したときに自動的に irb を読み込みます 13099 [実験的]
* binding.irb を実行したときに周囲......#state.
* Ripper#state を追加。スキャナーの状態を伝えるためです。13686
* rdoc
* RDoc 6.0.1 に更新
* Replace IRB based lexer with Ripper.
* https://github.com/ruby/rdoc/pull/512
* This much improves the speed of generating documents.
*......nonblock で
副作用として O_NONBLOCK フラグをセットするのをやめました(Linux のみ)
13362
* Random
* Random.raw_seed は Random.urandom に名前を変更しました。
シードを必要としない用途で有用です。9569
* Socket
* Socket... -
NEWS for Ruby 2
. 4 . 0 (30.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...* Numeric#finite?, Numeric#infinite? を追加 12039
* Process
* macOS 10.12 から導入された CLOCK_MONOTONIC_RAW_APPROX, CLOCK_UPTIME_RAW,
CLOCK_UPTIME_RAW_APPROX をサポートしました
* Rational
* Rational#round は half というキーワード引数を受け付......=> で引数のオブジェクトを IPAddr に変換する処理に失敗しても例外が発生しなくなりました
12799
* irb
* Binding#irb binding.pryと同じようにREPLのセッションを開始します。r56624.
* logger
* Logger.new のキーワード引数に l... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...Ractor compatible.
* Etc
* Update to Etc 1.2.0
* This version is Ractor compatible.
* Fiddle
* Update to Fiddle 1.0.5
* IRB
* Update to IRB 1.2.6
* JSON
* Update to JSON 2.5.0
* This version is Ractor compatible.
* Set
* Update to set 1.0.0
* SortedSet has......but users might experience slow compilations.
* Memory view interface [EXPERIMENTAL]
* The memory view interface is a C-API set to exchange a raw memory area, such as a numeric array or a bitmap image, between extension libraries. The extension libraries can share also the metadata of the mem...