2244件ヒット
[1-100件を表示]
(0.045秒)
別のキーワード
ライブラリ
- ビルトイン (878)
-
cgi
/ core (12) - csv (54)
- date (4)
- fiddle (12)
- json (240)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (144)
- mkmf (12)
- monitor (2)
-
net
/ http (108) - open-uri (24)
- optparse (360)
- pathname (12)
- rake (72)
-
rexml
/ document (48) -
rexml
/ streamlistener (12) -
rubygems
/ specification (24) -
rubygems
/ version (24) - socket (12)
- strscan (12)
- tsort (58)
クラス
- Addrinfo (12)
- Array (12)
- BigDecimal (12)
- Binding (7)
- CGI (12)
-
CSV
:: Row (6) -
CSV
:: Table (24) - Complex (12)
- Data (6)
- Date (14)
- DateTime (14)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) - Exception (92)
- Fiber (6)
-
Fiddle
:: Function (12) -
Gem
:: Specification (24) -
Gem
:: Version (24) -
JSON
:: Parser (12) -
JSON
:: State (120) - MatchData (4)
- Matrix (132)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (72)
- Monitor (2)
-
Net
:: HTTPResponse (96) - Object (12)
- OptionParser (312)
- Pathname (12)
- Proc (12)
-
REXML
:: Document (24) -
REXML
:: Instruction (24) -
Rake
:: Application (48) -
Rake
:: InvocationChain (12) - Range (12)
- Rational (48)
- Regexp (12)
-
RubyVM
:: InstructionSequence (130) - SignalException (12)
- String (204)
- StringScanner (12)
- Struct (36)
- Thread (24)
-
Thread
:: Backtrace :: Location (84) - Time (38)
- TracePoint (19)
- UnboundMethod (12)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
Net
:: HTTPHeader (12) -
OpenURI
:: Meta (24) -
OptionParser
:: Arguable (48) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (12) - TSort (58)
キーワード
-
absolute
_ path (24) - accept (12)
-
arg
_ config (12) -
array
_ nl (12) -
array
_ nl= (12) - autoload? (12)
- backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (24) - binread (12)
- body (12)
- byteindex (3)
- call (12)
- canonname (12)
- capitalize (9)
- capitalize! (9)
- code (12)
-
cofactor
_ expansion (12) - component (12)
- concat (33)
- conj (12)
- conjugate (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
- content (12)
-
content
_ encoding (12) -
content
_ type (24) - convert (12)
- deconstruct (14)
-
deconstruct
_ keys (20) -
default
_ argv (12) - disasm (12)
- disassemble (12)
- downcase (9)
- downcase! (9)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eigen (12)
- eigensystem (12)
- encode (36)
- encode! (24)
- entity (12)
- entitydecl (12)
- environment (12)
-
error
_ bytes (12) -
error
_ char (12) - eval (12)
- finish (12)
-
first
_ lineno (12) - header (12)
- help (12)
-
http
_ version (12) - indent (12)
- indent= (12)
-
insert
_ output (12) - inspect (48)
-
instruction
_ sequence (7) - label (24)
-
laplace
_ expansion (12) -
last
_ description (12) - lineno (12)
- lup (12)
-
lup
_ decomposition (12) -
module
_ function (12) - msg (12)
- name (12)
-
object
_ nl (12) -
object
_ nl= (12) - order (48)
- order! (48)
-
original
_ dir (12) - parse (24)
- parse! (24)
-
parse
_ csv (12) - partition (12)
- path (24)
- permute (24)
- permute! (24)
-
program
_ name (12) - putback (24)
- raise (6)
-
raised
_ exception (12) - rakefile (12)
-
read
_ body (24) - release (12)
- replacement (12)
- replacement= (12)
- rpartition (12)
-
rubygems
_ version (12) -
set
_ backtrace (12) - signm (12)
-
singleton
_ methods (12) - solve (12)
- source (12)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
stand
_ alone? (12) - strftime (12)
-
strongly
_ connected _ components (12) -
summary
_ indent (12) - swapcase (9)
- swapcase! (9)
- target (12)
-
to
_ a (30) -
to
_ binary (10) -
to
_ csv (24) -
to
_ json (228) -
to
_ r (12) -
to
_ ruby (12) -
to
_ s (84) - trace (12)
- truncate (12)
- upcase (9)
- upcase! (9)
- values (6)
- ver (12)
- version (24)
-
wait
_ for _ cond (2) - zone (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (29213.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...て返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッ......ません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")
# ※表示の都合上改行しているが実際は改......0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}
@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data... -
RubyVM
:: InstructionSequence # inspect -> String (29107.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (29101.0) -
self が表す命令シーケンスの絶対パスを返します。
...= RubyVM::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 = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (29101.0) -
self が表す命令シーケンスの基本ラベルを返します。
...ルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.r......# 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 # disasm -> String (29101.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...を人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002......putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # disassemble -> String (29101.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...を人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002......putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # label -> String (29101.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
... 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 = Ruby......VM::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... -
RubyVM
:: InstructionSequence # path -> String (29101.0) -
self が表す命令シーケンスの相対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # to _ a -> Array (29013.0) -
self の情報を 14 要素の配列にして返します。
...す。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データ......s
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]
より詳細な情報については、vm_core......構成する命令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2,...