るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. integer >
  4. complex >
  5. module >

検索結果

<< 1 2 3 ... > >>

RDoc::Context::Section#sequence -> String (18202.0)

section のシーケンス番号を文字列で返します。

section のシーケンス番号を文字列で返します。

リンクを作成する時に使われます。

TracePoint#instruction_sequence -> RubyVM::InstructionSequence (6314.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
//}

@rais...

Psych::Handler#start_sequence(anchor, tag, implicit, style) -> () (6272.0)

sequence の開始を見付けたときに呼び出されます。

...
sequence
の開始を見付けたときに呼び出されます。

anchor には sequence に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。

tag には sequence に関連付けられた tag の名前が文字列で渡...
...ます。

implicit には sequence が implicit に開始されたかどうかが
真偽値で渡されます。

style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Sequence::BLOCK
* Psych::Nodes::Sequence::FLOW

必要に応じて...
...e してください。

@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit sequence が implicit に開始されかどうか
@param style sequence のスタイル

=== Example

以下の YAML ドキュメントを例として考えます。

---
- !!seq [...

Psych::Handler#end_sequence -> () (6218.0)

sequence の終了の見付けたときに呼び出されます。

...
sequence
の終了の見付けたときに呼び出されます。

必要に応じてこのメソッドを override してください。...

Psych::Nodes::Sequence#anchor -> String|nil (3129.0)

sequence に付加された anchor を返します。

...sequence に付加された anchor を返します。

@see Psych::Nodes::Sequence#anchor=,
Psych::Nodes::Sequence.new...

絞り込み条件を変える

Psych::Nodes::Sequence#implicit -> bool (3129.0)

sequence が implicit に開始されたかどうかを真偽値で返します。

...sequence が implicit に開始されたかどうかを真偽値で返します。

@see Psych::Nodes::Sequence#implicit=,
Psych::Nodes::Sequence.new...

Psych::Nodes::Sequence#style -> Integer (3129.0)

sequence の style を返します。

...sequence の style を返します。

@see Psych::Nodes::Sequence#style=,
Psych::Nodes::Sequence.new...

Psych::Nodes::Sequence#tag -> String|nil (3129.0)

sequence に付加された tag を返します。

...sequence に付加された tag を返します。

@see Psych::Nodes::Sequence#tag=,
Psych::Nodes::Sequence.new...

Encoding::InvalidByteSequenceError#incomplete_input? -> bool (3113.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
//}...

RubyVM::InstructionSequence#absolute_path -> String | nil (3113.0)

self が表す命令シーケンスの絶対パスを返します。

...byVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
>
iseq = RubyVM::...
...InstructionSequence.compile_file('/tmp/method.rb')
>
iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...

絞り込み条件を変える

<< 1 2 3 ... > >>