るりまサーチ

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

別のキーワード

  1. _builtin eval
  2. kernel eval
  3. module class_eval
  4. module module_eval
  5. _builtin class_eval

検索結果

<< 1 2 > >>

irb (39658.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:...
...) 式を .irbrc に記述すると、
irb
コマンドのオプションを指定したのと同じ効果が得られます。

IRB
.conf[:AUTO_INDENT] = false
IRB
.conf[:BACK_TRACE_LIMIT] = 16
IRB
.conf[:DEBUG_LEVEL] = 1
IRB
.conf[:ECHO] = nil
IRB
.conf[:EVAL_HISTORY] = nil
IRB
.conf[:HISTORY...

IRB::Context#eval_history=(val) (9125.0)

実行結果の履歴の最大保存件数を val に設定します。

...実行結果の履歴の最大保存件数を val に設定します。

.irbrc ファイル中で IRB.conf[:EVAL_HISTORY] を設定する事でも同様の事が
行えます。

@param val 実行結果の履歴の最大保存件数を Integer か nil で指定し
ます。0 を指定...
...た場合は無制限に履歴を保存します。現在の値よ
りも小さい値を指定した場合は履歴がその件数に縮小されます。
nil を指定した場合は履歴の追加がこれ以上行われなくなります。

@see IRB::Context#eval_history...

IRB::Context#eval_history -> Integer | nil (9113.0)

実行結果の履歴の最大保存件数を Integer か nil で返します。

...履歴の最大保存件数を Integer か nil で返します。

@return 履歴の最大保存件数を Integer か nil で返します。0 を返し
た場合は無制限に保存します。nil を返した場合は追加の保存は行いません。

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

IRB::Context#evaluate(line, line_no) -> object (9100.0)

ライブラリ内部で使用します。

ライブラリ内部で使用します。

irb/completion (6088.0)

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

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

=== 使い方

$ irb -r irb/completion

とするか, ~/.irbrc 中に

require "irb/completion"

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

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

irb
(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
irb
(main):001:0> inspect
"main"
irb
(main):002:0> foo = Objec...
...t.new
#<Object:0x4027146c>

"変数名." の後に [Tab] を押すと, そのオブジェクトのメソッド一覧がでます.

irb
(main):003:0> foo.
foo.== foo.frozen? foo.protected_methods
foo.=== foo.hash foo.public_methods...

絞り込み条件を変える

irb/ext/history (6034.0)

IRB::Context に実行結果の履歴を保持する機能を提供するサブライブラ リです。

...IRB::Context に実行結果の履歴を保持する機能を提供するサブライブラ
リです。

conf.eval_history か IRB.conf[:EVAL_HISTORY] に Integer を設定す
る事で使用できます。

このライブラリで定義されているメソッドはユーザが直接使用する...

IRB::ContextExtender.install_extend_commands -> object (3024.0)

定義済みの拡張を読み込みます。

...みます。

IRB
::Context で以下のメソッドが利用できるようになります。

* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=

irb
/extend-command が require された時にライブラリ内部で自動的
に実行されます。

@see IRB::ContextExt...

ruby 1.8.4 feature (132.0)

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

...ck::HTTPRequest#query_string= [new]>))
* ((<ruby 1.8.4 feature/Readline [bug]>))
* ((<ruby 1.8.4 feature/Syck [bug]>))
* ((<ruby 1.8.4 feature/irb [bug]>))
* ((<ruby 1.8.4 feature/RDoc [bug]>))
* ((<ruby 1.8.4 feature/Win32API [bug]>))
* ((<ruby 1.8.4 feature/Rinda [bug]>))
* ((<ruby 1...
...1.8.4 (2005-12-22) [i686-linux]
:foo!
:bar?

4) :$- always treats next character literally:

p eval(":$-\n") # => :"$-\n"
p :$-( # => :"$-("
p :$- # => :"$- "
p :$-#.object_id # => 3950350

# => ru...
...Nov 1 14:20:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (rb_call_super): should call method_missing if super is
# called from Kernel method.
#
# * eval.c (exec_under): frame during eval should preserve external
# information.

: super [bug]

Kerne...

ruby 1.6 feature (72.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...が定義されていない場合例外 NameError を起こ
すようになりました。((<ruby-bugs-ja:PR#216>))

Object.new.instance_eval {
p remove_instance_variable :@foo
}
=> ruby 1.6.7 (2002-03-01) [i586-linux]
nil

=> -:2:in `remove_ins...
...ule_eval>))

((<Module/module_eval>)) のブロック内で定数やクラス変数のスコープが
変わることはなくなりました。((<ruby-dev:17876>))

class Foo
FOO = 1
@@foo = 1
end

FOO = 2
@@foo = 2

Foo.module_eval {...
...準ライブラリとして新規に追加されました。
(ドキュメントが doc ディレクトリにあります)

: ((<irb>)) & irb-tools

irb
irb-tools がそれぞれ 0.7.4 と 0.7.1 にバージョンアップしました。

: 夏時間

夏時間の考慮に不備があ...

NEWS for Ruby 3.0.0 (36.0)

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

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

=== `--backtrace-limit` option

The `--backtrace-limit` option limits the maximum length of a backtrace.
8661

== Core classes updates...
...ep(2)] # take each second element
# => ["data1", "data2", "data3"]
//}

* Binding
* Binding#eval when called with one argument will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352 17419
* ConditionVariable
* ConditionVariable#wait may now invoke the `bloc...
...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...

絞り込み条件を変える

<< 1 2 > >>