るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.035秒)
トップページ > クエリ:Integer[x] > クエリ:eval[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer chr
  5. integer upto

ライブラリ

クラス

キーワード

検索結果

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

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

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

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

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

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

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

...大保存件数を val に設定します。

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

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

@see IRB::Context#eval_history...

Proc#source_location -> [String, Integer] | nil (114.0)

ソースコードのファイル名と行番号を配列で返します。

...by]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location # => nil
//}

@see Method#source_location...

Object#method(name) -> Method (13.0)

オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。

...ror 定義されていないメソッド名を引数として与えると発生します。

//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#abs>
p me.call #=> 365
//}

@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method...