クラス
-
Encoding
:: Converter (60) -
Encoding
:: InvalidByteSequenceError (84) -
Enumerator
:: ArithmeticSequence (69) -
Net
:: IMAP (70) -
Net
:: IMAP :: ThreadMember (12) - Numeric (21)
-
OpenSSL
:: ASN1 :: Sequence (24) -
OpenSSL
:: X509 :: Extension (24) -
Psych
:: Handler (36) -
Psych
:: Nodes :: Sequence (108) -
RubyVM
:: InstructionSequence (174) - Socket (12)
モジュール
-
OpenSSL
:: ASN1 (48) -
Socket
:: Constants (12)
キーワード
- == (7)
- ASN1 (12)
- BLOCK (12)
- FLOW (12)
- InvalidByteSequenceError (12)
-
MSG
_ FLUSH (24) - Request (12)
- SEQUENCE (12)
-
absolute
_ path (12) - anchor (12)
-
base
_ label (12) - begin (6)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - copy (12)
- decode (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) - disassemble (24)
- each (14)
- end (7)
-
end
_ sequence (12) -
error
_ bytes (12) - eval (12)
-
exclude
_ end? (7) - expunge (12)
- first (7)
-
first
_ lineno (12) - implicit (12)
- implicit= (12)
-
incomplete
_ input? (12) - label (12)
- last (14)
-
last
_ error (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - move (10)
- new (72)
-
primitive
_ convert (48) -
readagain
_ bytes (12) - search (12)
- seqno (12)
- size (7)
-
source
_ encoding (12) -
source
_ encoding _ name (12) -
start
_ mapping (12) -
start
_ sequence (12) - step (21)
- store (12)
- style (12)
- style= (12)
- tag (12)
-
to
_ binary (10) -
uid
_ thread (12)
検索結果
先頭5件
- OpenSSL
:: ASN1 . # Sequence(value) -> OpenSSL :: ASN1 :: Sequence -> OpenSSL :: ASN1 :: Sequence - OpenSSL
:: ASN1 . # Sequence(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: Sequence - OpenSSL
:: ASN1 :: Sequence - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - Encoding
:: InvalidByteSequenceError
-
OpenSSL
:: ASN1 . # Sequence(value) -> OpenSSL :: ASN1 :: Sequence -> OpenSSL :: ASN1 :: Sequence (21427.0) -
ASN.1 の Sequence 型の値を表現する Ruby のオブジェクトを 生成します。
....1 の Sequence 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Sequence.new と同じです。
@param value ASN.1値を表すRubyのオブジェクト(OpenSSL::ASN1::ASN1Dataの配列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT......もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 . # Sequence(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: Sequence (21327.0) -
ASN.1 の Sequence 型の値を表現する Ruby のオブジェクトを 生成します。
....1 の Sequence 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Sequence.new と同じです。
@param value ASN.1値を表すRubyのオブジェクト(OpenSSL::ASN1::ASN1Dataの配列)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT......もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか)... -
OpenSSL
:: ASN1 :: Sequence (21016.0) -
ASN.1 の Sequence 型(Universal タグのタグ番号16)を表すクラスです。
...ASN.1 の Sequence 型(Universal タグのタグ番号16)を表すクラスです。... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (15400.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......lse、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hel......lo.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
Encoding
:: InvalidByteSequenceError (12000.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 . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (9300.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...tionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数 file の絶対パスファイル名を文字列で指定します。
@param line......false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<c......ompiled>>
@see RubyVM::InstructionSequence.compile_file... -
Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () (9271.0) -
sequence の開始を見付けたときに呼び出されます。
...
sequence の開始を見付けたときに呼び出されます。
anchor には sequence に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には sequence に関連付けられた tag の名前が文字列で渡......nil が渡されます。
implicit には sequence が implicit に開始されたかどうかが
真偽値で渡されます。
style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Sequence::BLOCK
* Psych::Nodes::Sequence::FLOW
必......グ名
@param implicit sequence が implicit に開始されかどうか
@param style sequence のスタイル
=== Example
以下の YAML ドキュメントを例として考えます。
---
- !!seq [
a
]
- &pewpew
- b
この YAML ドキュメントには3つの list が含まれ... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (9200.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
Psych
:: Nodes :: Sequence # implicit -> bool (9128.0) -
sequence が implicit に開始されたかどうかを真偽値で返します。
...sequence が implicit に開始されたかどうかを真偽値で返します。
@see Psych::Nodes::Sequence#implicit=,
Psych::Nodes::Sequence.new...