るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

クラス

検索結果

irb (45700.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:1>...
...「.irbrc」と呼称します。

以下のような (Ruby の) 式を .irbrc に記述すると、
irb
コマンドのオプションを指定したのと同じ効果が得られます。

IRB
.conf[:AUTO_INDENT] = false
IRB
.conf[:BACK_TRACE_LIMIT] = 16
IRB
.conf[:DEBUG_LEVEL] = 1
IRB
.conf[:...

IRB::Context#auto_indent_mode=(val) (35219.0)

入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。

...します。

@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。

IRB
::Context#prompt_mode の変更に影響を受ける事に注意してください。

@see IRB::Context#auto_indent_mode...

IRB::Context#auto_indent_mode -> bool (35213.0)

入力が次の行に継続した時に自動で字下げを行うかどうかを返します。

...入力が次の行に継続した時に自動で字下げを行うかどうかを返します。

デフォルト値は false です。

@return 自動で字下げを行う場合は true を返します。行わない場合は false
を返します。

@see IRB::Context#auto_indent_mode=...

ruby 1.8.4 feature (180.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影...
...e/Iconv>))
* ((<ruby 1.8.4 feature/WEBrick::Config::FileHandler [compat]>))
* ((<ruby 1.8.4 feature/WEBrick>))
* ((<ruby 1.8.4 feature/WEBrick::HTTPRequest#query_string= [new]>))
* ((<ruby 1.8.4 feature/Readline [bug]>))
* ((<ruby 1.8.4 feature/Syck [bug]>))
* ((<ruby 1.8.4 feature/irb [...
...とThread.criticalがクリアされるようになりました。
((<ruby-core:04039>))

: Module#const_missing [bug]

#Thu Sep 29 00:57:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
# autoload succeeded....

NEWS for Ruby 3.0.0 (36.0)

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

...positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting...
...single rest argument and no keywords.
16166

//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}

pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]

pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}

* Arguments forwarding (`...`) now supports leadin...
...to Date 3.1.1
* This version is Ractor compatible.
* Digest
* Update to Digest 3.0.0
* This version is 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
*...

絞り込み条件を変える