273件ヒット
[1-100件を表示]
(0.057秒)
種類
- インスタンスメソッド (207)
- 特異メソッド (48)
- ライブラリ (12)
- 文書 (6)
クラス
- CSV (12)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Enumerator
:: ArithmeticSequence (35) - Numeric (21)
-
Psych
:: Handler (12) -
RubyVM
:: InstructionSequence (96) - TracePoint (7)
キーワード
- == (7)
-
NEWS for Ruby 2
. 7 . 0 (6) -
absolute
_ path (12) -
base
_ label (12) - begin (7)
- disasm (12)
- disassemble (12)
-
end
_ sequence (12) -
error
_ bytes (12) -
exclude
_ end? (7) -
first
_ lineno (12) - hash (7)
-
incomplete
_ input? (12) -
instruction
_ sequence (7) - label (12)
-
net
/ imap (12) - new (12)
- of (12)
- path (12)
-
primitive
_ convert (48) - step (21)
検索結果
先頭5件
-
Enumerator
:: ArithmeticSequence # end -> Numeric | nil (21101.0) -
末項(終端)を返します。
...末項(終端)を返します。
@see Enumerator::ArithmeticSequence#begin... -
Psych
:: Handler # end _ sequence -> () (12218.0) -
sequence の終了の見付けたときに呼び出されます。
...
sequence の終了の見付けたときに呼び出されます。
必要に応じてこのメソッドを override してください。... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (9101.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (6219.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...ルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hello'")
end
//}
@raise RuntimeError :scrip... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (3112.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...VM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_......ethod
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello
puts "hello, world"
end
$a_global_proc = proc { str......rb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>......irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (3012.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
...ing::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.convert("abc\xA1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplet......e "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
Enumerator
:: ArithmeticSequence # ==(other) -> bool (3012.0) -
Enumerable::ArithmeticSequence として等しいか判定します。
...Enumerable::ArithmeticSequence として等しいか判定します。
other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。
@param other 自身と比較する Enumerable::ArithmeticSequence... -
Enumerator
:: ArithmeticSequence # hash -> Integer (3012.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence は
同じハッシュ値を返します。... -
RubyVM
:: InstructionSequence # base _ label -> String (3012.0) -
self が表す命令シーケンスの基本ラベルを返します。
...RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq =......RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label... -
RubyVM
:: InstructionSequence # label -> String (3012.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...q = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = R......ubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (3006.0) -
エラー発生時に捨てられたバイト列を返します。
...\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.readagain_bytes.dump #=> "\xFF"
end
//}
@see Encoding::InvalidByteSequenceError#readagain_bytes...