2497件ヒット
[1-100件を表示]
(0.084秒)
別のキーワード
ライブラリ
- ビルトイン (1434)
- bigdecimal (12)
-
bigdecimal
/ util (12) - csv (51)
-
fiddle
/ import (12) -
irb
/ context (36) - json (96)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) - matrix (36)
- mkmf (12)
- monitor (4)
-
net
/ http (84) - optparse (408)
- pathname (12)
- rake (48)
-
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ requirement (48) -
rubygems
/ specification (48) -
rubygems
/ version (36) - socket (12)
- thread (16)
- timeout (8)
- win32ole (24)
クラス
- Addrinfo (12)
- Array (145)
- BasicObject (36)
- BigDecimal (24)
- Binding (7)
- CSV (24)
-
CSV
:: Row (3) -
CSV
:: Table (24) - Class (12)
- Data (3)
-
Encoding
:: Converter (120) -
Encoding
:: InvalidByteSequenceError (24) -
Enumerator
:: Lazy (24) - Exception (68)
- Fiber (6)
-
Gem
:: Requirement (48) -
Gem
:: Specification (48) -
Gem
:: Version (36) -
IRB
:: Context (36) -
JSON
:: Parser (12) -
JSON
:: State (48) - Matrix (24)
-
Matrix
:: LUPDecomposition (12) - Module (120)
- Monitor (4)
- Mutex (2)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (48) - Numeric (12)
- Object (120)
- OptionParser (324)
- Pathname (12)
- Proc (6)
-
Rake
:: InvocationChain (24) - Rational (60)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (130) - String (39)
- Struct (18)
- Thread (45)
-
Thread
:: Backtrace :: Location (84) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (36)
- TracePoint (7)
- UnboundMethod (24)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (232)
-
Fiddle
:: Importer (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (44)
-
OptionParser
:: Arguable (84) -
Rake
:: Cloneable (24)
キーワード
- == (24)
- === (24)
- =~ (12)
- JSON (12)
-
abort
_ on _ exception (12) - abs (9)
-
absolute
_ path (24) -
allow
_ nan? (12) - append (12)
-
arg
_ config (12) - backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (24) - bind (12)
- binread (12)
- body (12)
- broadcast (12)
- bump (12)
- byteindex (3)
-
check
_ circular? (12) - clone (36)
-
cofactor
_ expansion (12) -
collect
_ concat (36) - combination (24)
- concat (18)
-
connect
_ from (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- convert (12)
- deconstruct (12)
-
default
_ event _ sources (12) -
define
_ singleton _ method (24) - deq (24)
- detect (24)
- disasm (12)
- disassemble (12)
- dup (24)
-
each
_ cons (24) - encode (36)
- entity (12)
- eql? (12)
-
error
_ bytes (12) - eval (12)
- fetch (12)
-
field
_ size _ limit (12) - find (24)
- finish (12)
-
first
_ lineno (12) -
flat
_ map (36) - gem (12)
- get (12)
- getopts (36)
- handler= (12)
-
incomplete
_ input? (12) -
insert
_ output (12) - inspect (24)
-
instruction
_ sequence (7) - intersection (6)
-
json
_ creatable? (12) - label (24)
-
laplace
_ expansion (12) - lineno (12)
- load (12)
- magnitude (9)
- member? (12)
-
module
_ function (12) - monday? (12)
- negative? (9)
- none? (65)
- nonzero? (24)
-
object
_ nl (12) -
on
_ head (12) -
on
_ tail (12) - one? (53)
- order (48)
- order! (48)
- parse (24)
- parse! (12)
- partition (24)
- path (24)
- permutation (12)
- permute (24)
- permute! (24)
- pop (24)
- positive? (9)
- post (12)
- prerelease? (12)
-
primitive
_ convert (48) -
prompt
_ mode (12) -
public
_ constant (12) - putback (24)
- raise (6)
-
read
_ body (24) -
remove
_ const (12) -
repeated
_ combination (24) - replacement= (12)
-
report
_ on _ exception (9) -
required
_ ruby _ version (12) -
required
_ rubygems _ version (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
response
_ body _ permitted? (12) -
ruby2
_ keywords (18) -
rubygems
_ version (12) -
satisfied
_ by? (12) -
set
_ backtrace (12) - shift (24)
- signal (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
slice
_ before (24) - solve (12)
-
source
_ location (19) -
space
_ before (12) - strftime (12)
- subsec (12)
- synchronize (12)
- timeout (8)
-
to
_ a (18) -
to
_ binary (10) -
to
_ csv (12) -
to
_ d (12) -
to
_ json (36) -
to
_ ruby (12) -
to
_ s (24) -
unconverted
_ fields? (12) - union (7)
-
use
_ readline (12) -
use
_ readline? (12) - values (6)
-
wait
_ for _ cond (4)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (35237.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...して返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソ......to_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_bina......都合上改行しているが実際は改行はない
# => "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... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (35201.0) -
self が表す命令シーケンスの絶対パスを返します。
...ます。
例1:irb で実行した場合
iseq = 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 = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (35201.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.rb
def hello......# 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 # disassemble -> String (35201.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 o......pt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # label -> String (35201.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...す。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
pu......end
# irb
> iseq = RubyVM::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 # eval -> object (32201.0) -
self の命令シーケンスを評価してその結果を返します。
...self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3... -
RubyVM
:: InstructionSequence # to _ a -> Array (32125.0) -
self の情報を 14 要素の配列にして返します。
...。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフ......:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。トップレベルでは "<ma......合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensur... -
RubyVM
:: InstructionSequence # inspect -> String (32113.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 # first _ lineno -> Integer (32107.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
...の 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2...