るりまサーチ

最速Rubyリファレンスマニュアル検索!
860件ヒット [1-100件を表示] (0.156秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:sequence[x] > クエリ:SEQUENCE[x]

別のキーワード

  1. openssl sequence
  2. sequence new
  3. asn1 sequence
  4. sequence style
  5. sequence tag=

ライブラリ

検索結果

<< 1 2 3 ... > >>

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

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

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

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

OpenSSL::ASN1::SEQUENCE -> Integer (24434.0)

ASN.1 UNIVERSAL タグの、 SEQUENCE のタグ番号 16 を表す定数です。

...ASN.1 UNIVERSAL タグの、
SEQUENCE
のタグ番号 16 を表す定数です。...

TracePoint#instruction_sequence -> RubyVM::InstructionSequence (18814.0)

script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。

...script_compiledイベント発生時にコンパイルされた
R
ubyVM::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 :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。...

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

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

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

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

tag には sequence に関連付けられた tag の名前が文字列で渡...
... sequence が implicit に開始されたかどうかが
真偽値で渡されます。

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

必要に応じてこのメソッドを overri...
...aram anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit sequence が implicit に開始されかどうか
@param style sequence のスタイル

=== Example

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

-
--
-
!!seq [
a
]
-
&pewpew
-
...

Encoding::InvalidByteSequenceError (18024.0)

文字列がそのエンコーディングにおいて不正なバイト列である場合に発生 する例外。

...である場合に発生
する例外。

通常エンコーディング変換時に発生します。

//emlist[例][ruby]{
"\x82\xa0".force_encoding("cp932").encode("UTF-8")
#=> "あ"
"\x82\xa0".force_encoding("EUC-JP").encode("UTF-8")
#=> Encoding::InvalidByteSequenceError: "\x82" on EUC-JP
//}...

絞り込み条件を変える

RubyVM::InstructionSequence.load_from_binary(binary) -> RubyVM::InstructionSequence (15400.0)

RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

...
R
ubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起...
...りません。自分が変換したバイナリデータを使うべきです。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
R
ubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}

@see RubyVM::InstructionSequence#to_binary...

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

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

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

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

Encoding::InvalidByteSequenceError#error_bytes -> String (15224.0)

エラー発生時に捨てられたバイト列を返します。

...st[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
r
escue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.readagai...
...n_bytes.dump #=> "\xFF"
end
//}

@see Encoding::InvalidByteSequenceError#readagain_bytes...

RubyVM::InstructionSequence#first_lineno -> Integer (15206.0)

self が表す命令シーケンスの 1 行目の行番号を返します。

...の 1 行目の行番号を返します。

例1:irb で実行した場合

R
ubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1

例2:

# /tmp/method.rb
r
equire "foo-library"
def foo
p :foo
end

R
ubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2...

RubyVM::InstructionSequence#to_binary(extra_data = nil) -> String (15206.0)

バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

...て返します。
R
ubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

引数の extra_data はバイナリデータと共に保存されます。
R
ubyVM::InstructionSequence.load_from_binary_extra_data メソッ...
...ry で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extr...
...合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00\x00\x16\x02\x00\x00\n\x00\x00\x00\x01
# \x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\x84\x01\x00\x00\x88\x01\x00
# \x00\x02\x02\x00\x00x86_64-darwin15\x00*\x00\x00\x00\x00\x00\x00\x00\x01
# \x00\x00\x00\x00\x0...

絞り込み条件を変える

<< 1 2 3 ... > >>