3889件ヒット
[1-100件を表示]
(0.109秒)
別のキーワード
ライブラリ
- ビルトイン (2399)
- abbrev (12)
- bigdecimal (72)
- csv (72)
- digest (60)
- erb (48)
-
irb
/ cmd / help (12) - json (72)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) - kconv (12)
- logger (12)
- mkmf (12)
-
net
/ http (96) - openssl (12)
- optparse (312)
- pathname (36)
- psych (12)
- rake (60)
-
rexml
/ document (156) -
ripper
/ lexer (24) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ specification (24) - stringio (122)
- strscan (180)
-
webrick
/ httprequest (12) - win32ole (24)
クラス
-
ARGF
. class (12) - Array (33)
- BasicObject (12)
- BigDecimal (84)
- Binding (7)
-
CSV
:: Table (72) - Class (12)
-
Digest
:: Base (60) - ERB (48)
- Encoding (12)
-
Encoding
:: Converter (72) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (24)
- Exception (44)
-
Gem
:: GemPathSearcher (12) -
Gem
:: Specification (24) - IO (8)
-
IRB
:: ExtendCommand :: Help (12) - Integer (24)
-
JSON
:: State (48) - Logger (12)
- MatchData (24)
- Method (12)
- Module (436)
-
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (48) - Object (249)
-
OpenSSL
:: BN (12) - OptionParser (264)
- Pathname (36)
-
Psych
:: ScalarScanner (12) -
REXML
:: Attribute (36) -
REXML
:: Attributes (36) -
REXML
:: DocType (24) -
REXML
:: Element (60) -
Rake
:: FileList (60) - Random (12)
- Range (19)
- Regexp (12)
-
Ripper
:: Lexer (24) -
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (94) - String (1015)
- StringIO (122)
- StringScanner (180)
- Struct (24)
- Symbol (59)
- Thread (32)
-
Thread
:: Backtrace :: Location (72) - Time (12)
- UnboundMethod (96)
-
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (12)
-
Net
:: HTTPHeader (36) -
OptionParser
:: Arguable (48)
キーワード
- % (12)
- + (12)
- <=> (12)
- == (24)
- === (48)
- =~ (9)
- [] (132)
- []= (24)
-
_ _ id _ _ (12) -
_ dump (24) - abbrev (12)
-
absolute
_ path (24) -
alias
_ method (4) -
arg
_ config (12) - arity (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
attribute
_ of (12) - backtrace (24)
-
base
_ label (24) -
basic
_ auth (12) -
beginning
_ of _ line? (12) - binread (12)
- body (24)
- bol? (12)
- byteindex (3)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
- casecmp (12)
- casecmp? (18)
- chars (12)
- class (12)
-
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - clone (24)
- closed? (12)
- codepoints (12)
- coerce (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - convert (12)
- cover? (19)
-
define
_ method (24) -
define
_ singleton _ method (24) - digest (12)
- digest! (12)
- disasm (12)
- disassemble (12)
- dummy? (12)
- dump (12)
- dup (12)
-
each
_ byte (48) -
each
_ char (12) -
each
_ codepoint (12) -
each
_ grapheme _ cluster (8) - empty? (24)
- encode (36)
-
end
_ with? (18) - entity (12)
- eos? (12)
- eql? (24)
-
error
_ bytes (12) - execute (12)
- filename (12)
- filename= (12)
- finish (12)
- formatter (12)
- freeze (12)
-
get
_ byte (12) - getbyte (36)
- getc (12)
- getch (12)
-
grapheme
_ clusters (8) - gsub (48)
- gsub! (60)
- hash (12)
- hexdigest (12)
- hexdigest! (12)
- include? (12)
-
insert
_ output (12) - inspect (121)
-
instance
_ method (12) - intern (12)
-
is
_ a? (12) - iseuc (12)
- itself (12)
-
json
_ creatable? (12) -
kind
_ of? (12) - label (24)
- lex (12)
-
lib
_ dirs _ for (12) - match (12)
- match? (30)
- matched? (12)
-
matched
_ size (12) - method (12)
-
method
_ defined? (12) -
module
_ function (12) - name (29)
- namespace (24)
- namespaces (24)
- next (12)
- next! (12)
-
object
_ nl (12) -
object
_ nl= (12) - oct (12)
- on (144)
- order (48)
- order! (48)
- pack (21)
- parse (12)
- parse! (12)
- path (36)
- peek (12)
- peep (12)
- permute (24)
- permute! (24)
- pread (8)
- prefix (12)
- prefixes (24)
- print (12)
- printf (12)
- private (48)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
proxy
_ basic _ auth (12) - public (60)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putback (24)
- puts (12)
- query (12)
-
read
_ body (24) - readbyte (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) - replacement= (12)
- rest? (12)
- result (12)
-
rubygems
_ version (12) - scan (24)
-
scan
_ full (12) - scrub (36)
- scrub! (36)
-
search
_ full (12) -
set
_ backtrace (12) - setbyte (12)
-
singleton
_ class (12) -
singleton
_ method (12) - slice (72)
- slice! (12)
-
source
_ location (19) -
space
_ before (12) -
space
_ before= (12) - split (31)
- src (12)
-
start
_ with? (18) - strftime (12)
- sub (60)
- sub! (48)
-
sub
_ type (12) - succ (12)
- succ! (12)
- sum (12)
- tainted? (6)
- text (12)
- then (14)
-
to
_ binary (10) -
to
_ csv (12) -
to
_ i (12) -
to
_ json (36) -
to
_ ruby (12) -
to
_ s (158) -
to
_ str (12) -
to
_ string (12) -
to
_ sym (12) - tokenize (12)
-
undef
_ method (12) -
unicode
_ normalized? (11) - unpack (12)
- unpack1 (9)
- upto (12)
-
valid
_ encoding? (12) - value (12)
-
values
_ at (12) -
with
_ object (24) - write (12)
- xpath (12)
-
yield
_ self (16)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (32232.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......ry("extra_data")
# ※表示の都合上改行しているが実際は改行はない
# => "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\x0... -
RubyVM
:: InstructionSequence # disassemble -> String (32203.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 # absolute _ path -> String | nil (32202.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 (32202.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 # label -> String (32202.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
:: AbstractSyntaxTree :: Node # inspect -> String (29114.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: InstructionSequence # inspect -> String (29114.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 # disasm -> String (29103.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 # path -> String (29102.0) -
self が表す命令シーケンスの相対パスを返します。
...ます。
例1:irb で実行した場合
iseq = 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 = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path...