6238件ヒット
[1-100件を表示]
(0.111秒)
別のキーワード
ライブラリ
- ビルトイン (4705)
- abbrev (12)
- bigdecimal (24)
- csv (171)
- date (28)
-
fiddle
/ import (12) -
irb
/ context (12) - json (12)
-
json
/ add / date (12) -
json
/ add / date _ time (12) - logger (72)
- matrix (114)
- mkmf (12)
-
net
/ http (228) - openssl (24)
- optparse (72)
- pathname (108)
- pp (24)
- psych (80)
- rake (60)
-
rdoc
/ parser / ruby (12) -
rexml
/ document (84) -
rexml
/ streamlistener (12) -
rubygems
/ requirement (36) -
rubygems
/ specification (36) -
rubygems
/ version (12) - socket (24)
- stringio (62)
- strscan (24)
- tsort (70)
- win32ole (72)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (1941)
- BigDecimal (24)
- Binding (24)
- CSV (72)
-
CSV
:: Row (3) -
CSV
:: Table (84) - Complex (12)
- Data (3)
- Date (38)
- DateTime (14)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (108)
-
Enumerator
:: Lazy (308) -
File
:: Stat (24) -
Gem
:: Requirement (36) -
Gem
:: Specification (36) -
Gem
:: Version (12) - Hash (511)
- IO (96)
-
IRB
:: Context (12) - Integer (8)
- Logger (72)
- MatchData (24)
- Matrix (78)
- Method (46)
- Module (216)
- Mutex (2)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (24) - Numeric (86)
- Object (160)
-
OpenSSL
:: BN (24) - OptionParser (72)
- Pathname (108)
- Proc (48)
-
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: DocType (36) -
REXML
:: Element (36) -
REXML
:: Entity (12) -
Rake
:: FileList (24) -
Rake
:: TaskArguments (12) - Random (24)
- Range (39)
- Rational (12)
-
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (94) - String (175)
- StringIO (62)
- StringScanner (24)
- Struct (16)
- Symbol (71)
- Thread (36)
-
Thread
:: Mutex (10) - Time (14)
- TracePoint (43)
- UnboundMethod (12)
- Vector (36)
- WIN32OLE (36)
-
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (464)
-
Fiddle
:: Importer (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) - Kernel (36)
-
Net
:: HTTPHeader (144) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (24) - TSort (70)
キーワード
- & (12)
- * (24)
- + (12)
- << (24)
- <=> (24)
- == (24)
- [] (84)
- []= (48)
- abbrev (12)
-
absolute
_ path (12) - add (24)
-
add
_ attribute (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ field (12) -
add
_ runtime _ dependency (12) -
alias
_ method (4) - all? (21)
- antisymmetric? (7)
- any? (62)
- anybits? (8)
- append (8)
-
append
_ as _ bytes (1) - assoc (24)
- at (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
attribute
_ of (12) -
base
_ label (12) - basename (12)
- bind (12)
- body (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
-
bsearch
_ index (20) -
by
_ col! (12) -
by
_ col _ or _ row! (12) -
by
_ row! (12) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
-
callee
_ id (12) - casecmp (12)
- casecmp? (9)
- children (19)
- chunk (24)
-
class
_ variables (12) - cleanpath (12)
- coerce (60)
- collect (36)
- collect! (24)
- collect2 (24)
-
collect
_ concat (12) - combination (24)
- compact (4)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - concat (33)
- constants (12)
-
content
_ type= (12) - converters (12)
- convpath (12)
- count (36)
- crypt (12)
- curry (46)
- cycle (48)
-
datetime
_ format (12) -
datetime
_ format= (12) -
deconstruct
_ keys (20) - default (12)
-
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delete (60)
-
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (36) - difference (7)
- dig (30)
- directory? (12)
- disasm (12)
- disassemble (12)
- display (12)
- drop (36)
-
drop
_ while (36) - each (84)
-
each
_ byte (72) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ entry (39) -
each
_ index (24) -
each
_ key (24) -
each
_ pair (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eigensystem (12)
- empty? (21)
-
end
_ with? (6) - entity (12)
- entitydecl (12)
- entries (7)
-
entrywise
_ product (8) - eql? (12)
-
error
_ bytes (12) - event (12)
- except (4)
-
family
_ addrinfo (24) - fdatasync (12)
- fetch (108)
-
fetch
_ values (22) - fill (72)
- filter (28)
- filter! (21)
-
filter
_ map (6) -
find
_ all (12) -
find
_ index (36) - first (36)
-
flat
_ map (12) - flatten (24)
- flatten! (12)
- get (12)
-
get
_ fields (12) - getbyte (36)
- gets (12)
- grep (12)
-
grep
_ v (10) -
hadamard
_ product (8) -
has
_ key? (12) -
header
_ converters (12) - headers (12)
- helpfile (12)
- hstack (12)
- imaginary (24)
- import (12)
-
in
_ namespace (12) - include? (24)
- index (36)
-
initialize
_ copy (12) - inject (24)
- insert (12)
- inspect (19)
-
install
_ rb (12) -
instance
_ methods (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - intersection (6)
- isatty (12)
- join (12)
-
keep
_ if (36) - key (12)
- key? (36)
- keys (12)
- label (12)
- last (24)
- lazy (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) - log (24)
- map (36)
- map! (24)
- map2 (12)
-
marshal
_ load (24) - match? (9)
- max (84)
-
max
_ by (48) - member? (12)
- merge (12)
- merge! (12)
-
method
_ id (12) - methods (12)
- min (84)
-
min
_ by (48) - minmax (12)
-
minmax
_ by (24) -
module
_ function (24) - name (5)
-
named
_ captures (12) -
next
_ values (12) -
next
_ year (12) - none? (21)
-
ole
_ query _ interface (12) - one? (21)
-
original
_ name (24) - pack (21)
- parameters (24)
- path (24)
- peek (12)
-
peek
_ values (12) - peep (12)
- permutation (24)
- pop (24)
- post (12)
- prepend (20)
-
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
prev
_ year (12) -
primitive
_ convert (48) -
primitive
_ errinfo (12) - priority (12)
- priority= (12)
- private (36)
-
private
_ instance _ methods (12) - product (24)
-
prompt
_ mode (12) -
proxy
_ basic _ auth (12) -
psych
_ y (12) -
psych
_ yaml _ as (4) - public (36)
- push (12)
- putback (12)
- rassoc (24)
-
read
_ body (24) - readbyte (36)
- readline (12)
- reduce (24)
- reject (48)
- reject! (36)
-
relative
_ path _ from (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (12)
-
respond
_ to _ missing? (12) -
reverse
_ each (24) - rindex (36)
- rotate (12)
- rotate! (12)
- sample (48)
-
satisfied
_ by? (12) - scan (12)
- scrub (12)
- scrub! (12)
- select (48)
- select! (36)
-
set
_ content _ type (12) - setbyte (12)
- setproperty (24)
- shift (36)
- shuffle (24)
- shuffle! (24)
-
singleton
_ methods (12) - size (13)
-
skew
_ symmetric? (7) - slice (44)
- slice! (36)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - split (24)
- start (36)
-
start
_ with? (6) - step (62)
- store (12)
- strftime (12)
-
strongly
_ connected _ components (12) - sum (18)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - symlink? (12)
- sync (12)
- synchronize (12)
-
synthesize
_ file _ task (12) - syswrite (12)
- take (36)
-
take
_ while (60) - tally (8)
-
to
_ a (43) -
to
_ ary (24) -
to
_ binary (10) -
to
_ csv (12) -
to
_ h (7) -
to
_ json (36) -
to
_ proc (12) -
to
_ s (12) - tokenize (12)
-
transform
_ keys (20) -
transform
_ keys! (20) - tsort (12)
- tty? (12)
- union (7)
- uniq (24)
- unpack (12)
- unshift (12)
- update (12)
-
values
_ at (36) - vstack (12)
-
with
_ index (12) -
with
_ object (24) - write (12)
-
yaml
_ as (4) - yield (12)
-
yield
_ self (16) - zip (48)
- | (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (32249.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...して返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソ......inary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("e......都合上改行しているが実際は改行はない
# => "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
:: AbstractSyntaxTree :: Node # children -> Array (29225.0) -
self の子ノードを配列で返します。
...の type によって異なります。
戻り値は、ほかの RubyVM::AbstractSyntaxTree::Node のインスタンスや nil を含みます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.children
# => [[], nil, #<RubyVM::AbstractSyntaxTree::Node:OPCALL@1:0-1:5>]
//... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (29125.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 (29119.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 (29107.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 (29107.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/me......end
# 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#l... -
RubyVM
:: InstructionSequence # disasm -> String (29107.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 (29107.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 (29107.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 (29107.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...