207件ヒット
[1-100件を表示]
(0.078秒)
クラス
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Enumerator
:: ArithmeticSequence (35) - Numeric (21)
-
Psych
:: Handler (12) -
RubyVM
:: InstructionSequence (60) - TracePoint (7)
キーワード
- == (7)
-
absolute
_ path (12) -
base
_ label (12) - begin (7)
-
end
_ sequence (12) -
error
_ bytes (12) -
exclude
_ end? (7) -
first
_ lineno (12) - hash (7)
-
incomplete
_ input? (12) -
instruction
_ sequence (7) - label (12)
- path (12)
-
primitive
_ convert (48) - step (21)
検索結果
先頭5件
-
Enumerator
:: ArithmeticSequence # end -> Numeric | nil (21102.0) -
末項(終端)を返します。
...末項(終端)を返します。
@see Enumerator::ArithmeticSequence#begin... -
Psych
:: Handler # end _ sequence -> () (12219.0) -
sequence の終了の見付けたときに呼び出されます。
...
sequence の終了の見付けたときに呼び出されます。
必要に応じてこのメソッドを override してください。... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (9102.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (6220.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... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (3013.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 (3013.0) -
Enumerable::ArithmeticSequence として等しいか判定します。
...Enumerable::ArithmeticSequence として等しいか判定します。
other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。
@param other 自身と比較する Enumerable::ArithmeticSequence... -
Enumerator
:: ArithmeticSequence # hash -> Integer (3013.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence は
同じハッシュ値を返します。... -
RubyVM
:: InstructionSequence # base _ label -> String (3013.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 (3013.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 (3007.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... -
Enumerator
:: ArithmeticSequence # begin -> Numeric (3007.0) -
初項 (始端) を返します。
...初項 (始端) を返します。
@see Enumerator::ArithmeticSequence#end... -
Enumerator
:: ArithmeticSequence # begin -> Numeric | nil (3007.0) -
初項 (始端) を返します。
...初項 (始端) を返します。
@see Enumerator::ArithmeticSequence#end...