るりまサーチ

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

別のキーワード

  1. openssl sequence
  2. sequence new
  3. asn1 sequence
  4. sequence any
  5. sequence tag

検索結果

<< 1 2 3 > >>

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...
<< 1 2 3 > >>