ライブラリ
クラス
- CSV (12)
-
Encoding
:: Converter (96) -
Encoding
:: InvalidByteSequenceError (84) -
Enumerator
:: ArithmeticSequence (98) -
Net
:: IMAP (106) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ThreadMember (12) - Numeric (21)
-
OpenSSL
:: ASN1 :: Sequence (24) -
OpenSSL
:: X509 :: Extension (24) -
Psych
:: Handler (36) -
Psych
:: Nodes :: Sequence (144) -
RDoc
:: Context :: Section (12) - Range (14)
-
RubyVM
:: InstructionSequence (246) - Socket (12)
- TracePoint (7)
モジュール
キーワード
- % (7)
- == (7)
- ANY (12)
- ASN1 (12)
- ArithmeticSequence (7)
- BLOCK (12)
- Document (12)
- FLOW (12)
- InstructionSequence (12)
- InvalidByteSequenceError (12)
-
MSG
_ FLUSH (24) - Mapping (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - Nodes (12)
- Request (12)
- SEQUENCE (12)
- Sequence (48)
-
absolute
_ path (12) - anchor (12)
- anchor= (12)
-
base
_ label (12) - begin (7)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - copy (12)
- decode (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) - disasm (24)
- disassemble (24)
- each (14)
- end (7)
-
end
_ sequence (12) -
error
_ bytes (12) - eval (12)
-
exclude
_ end? (7) - expunge (12)
- fetch (12)
- first (14)
-
first
_ lineno (12) - hash (7)
- implicit (12)
- implicit= (12)
-
incomplete
_ input? (12) - inspect (19)
-
instruction
_ sequence (7) - label (12)
- last (14)
-
last
_ error (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - move (10)
-
net
/ imap (12) - new (84)
- of (12)
- path (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - putback (24)
-
readagain
_ bytes (12) - search (12)
- seqno (24)
- size (7)
- sort (12)
-
source
_ encoding (12) -
source
_ encoding _ name (12) -
start
_ mapping (12) -
start
_ sequence (12) - step (35)
- store (12)
- style (12)
- style= (12)
- tag (12)
- tag= (12)
-
to
_ a (12) -
to
_ binary (10) -
to
_ json _ raw _ object (12) -
uid
_ sort (12) -
uid
_ thread (12)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - Psych
:: Nodes :: Sequence # anchor -> String|nil - Psych
:: Nodes :: Sequence # anchor=(a)
-
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (3100.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... -
RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (3100.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......かで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (3100.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_......binding@(irb)>
# method
> 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_glob......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>... -
Psych
:: Nodes :: Sequence # anchor -> String|nil (3028.0) -
sequence に付加された anchor を返します。
...sequence に付加された anchor を返します。
@see Psych::Nodes::Sequence#anchor=,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Sequence # anchor=(a) (3028.0) -
sequence に付加する anchor を設定します。
...sequence に付加する anchor を設定します。
@param a 設定する anchor
@see Psych::Nodes::Sequence#anchor,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Sequence # implicit -> bool (3028.0) -
sequence が implicit に開始されたかどうかを真偽値で返します。
...sequence が implicit に開始されたかどうかを真偽値で返します。
@see Psych::Nodes::Sequence#implicit=,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Sequence # implicit=(bool) (3028.0) -
sequence が implicit に開始されたかどうかを真偽値で設定します。
...sequence が implicit に開始されたかどうかを真偽値で設定します。
@param bool 設定値
@see Psych::Nodes::Sequence#implicit,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Sequence # style -> Integer (3028.0) -
sequence の style を返します。
...sequence の style を返します。
@see Psych::Nodes::Sequence#style=,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Sequence # style=(sty) (3028.0) -
sequence の style を設定します。
...sequence の style を設定します。
@param sty 設定する style
@see Psych::Nodes::Sequence#style,
Psych::Nodes::Sequence.new...