16436件ヒット
[1-100件を表示]
(0.204秒)
別のキーワード
ライブラリ
- ビルトイン (10520)
- abbrev (12)
- bigdecimal (180)
-
bigdecimal
/ util (24) -
cgi
/ core (12) - csv (408)
- date (16)
- digest (72)
- erb (48)
- etc (12)
- fiber (8)
- fiddle (12)
-
fiddle
/ import (36) -
io
/ wait (12) -
irb
/ cmd / help (12) -
irb
/ cmd / load (36) -
irb
/ context (48) -
irb
/ xmp (12) - json (216)
-
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) - logger (240)
- matrix (636)
- mkmf (36)
- monitor (24)
-
net
/ http (492) - openssl (84)
- optparse (600)
- pathname (236)
- pp (36)
- prime (120)
- psych (96)
- rake (228)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (36) -
rake
/ testtask (12) - resolv (12)
-
rexml
/ document (420) -
rexml
/ streamlistener (12) - ripper (48)
-
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ custom _ require (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (60) -
rubygems
/ specification (84) -
rubygems
/ version (48) - set (31)
- socket (84)
- stringio (304)
- strscan (312)
- thread (14)
- timeout (16)
- tsort (47)
- un (36)
- uri (36)
- win32ole (108)
クラス
-
ARGF
. class (168) - Addrinfo (48)
- Array (1393)
- BasicObject (120)
- BasicSocket (36)
- BigDecimal (192)
- Binding (48)
- CGI (12)
- CSV (168)
-
CSV
:: Row (108) -
CSV
:: Table (108) - Class (16)
- Complex (294)
- Data (9)
- Date (26)
- DateTime (14)
-
Digest
:: Base (72) - Dir (130)
- ERB (48)
-
Encoding
:: Converter (180) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (67)
-
Enumerator
:: Lazy (272) - Exception (80)
- Fiber (42)
-
Fiddle
:: Function (12) - File (64)
-
File
:: Stat (36) - Float (165)
- FrozenError (6)
-
Gem
:: Installer (24) -
Gem
:: Requirement (60) -
Gem
:: Specification (84) -
Gem
:: Version (48) - Hash (312)
- IO (418)
-
IRB
:: Context (48) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Integer (722)
-
JSON
:: State (72) - Logger (228)
-
Logger
:: Formatter (12) - MatchData (169)
- Matrix (545)
-
Matrix
:: LUPDecomposition (12) - Method (70)
- Module (556)
- Monitor (24)
- Mutex (4)
-
Net
:: HTTP (216) -
Net
:: HTTPGenericRequest (48) -
Net
:: HTTPResponse (24) - NilClass (67)
- Numeric (491)
- Object (353)
-
OpenSSL
:: BN (72) - OptionParser (540)
- PP (12)
- Pathname (236)
- Prime (48)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (39)
-
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (36) -
REXML
:: Attribute (12) -
REXML
:: Attributes (72) -
REXML
:: CData (24) -
REXML
:: Child (24) -
REXML
:: DocType (36) -
REXML
:: Element (144) -
REXML
:: Elements (72) -
REXML
:: Entity (12) -
REXML
:: Text (24) -
Rake
:: Application (24) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (72) -
Rake
:: InvocationChain (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (36) -
Rake
:: TaskArguments (12) -
Rake
:: TestTask (12) - Random (36)
- Range (238)
- Rational (315)
- Regexp (108)
-
Resolv
:: DNS (12) - Ripper (48)
-
Ripper
:: Filter (12) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (94) - Set (40)
- String (1875)
- StringIO (304)
- StringScanner (312)
- Struct (60)
- Symbol (56)
- Thread (148)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (20) -
Thread
:: Queue (12) -
Thread
:: SizedQueue (58) - Time (86)
- TracePoint (177)
-
URI
:: MailTo (36) - UnboundMethod (60)
- Vector (79)
- WIN32OLE (36)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
モジュール
- Comparable (21)
- Enumerable (972)
-
Fiddle
:: Importer (36) - FileUtils (12)
- GC (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 (184)
-
Net
:: HTTPHeader (204) -
OptionParser
:: Arguable (60) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (72) - TSort (47)
キーワード
- != (12)
- % (43)
- & (24)
- * (84)
- ** (36)
- + (67)
- +@ (22)
- - (36)
- -@ (31)
-
/ (35) - < (24)
- << (72)
- <= (24)
- <=> (162)
- == (96)
- === (60)
- =~ (52)
- > (24)
- >= (24)
- >> (12)
- JSON (12)
- [] (312)
- []= (146)
- ^ (24)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (24) - abbrev (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) - abs (12)
- abs2 (12)
-
absolute
_ path (24) - accept (12)
- add (36)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ element (12) -
add
_ field (12) -
add
_ loader (12) -
add
_ namespace (24) -
add
_ runtime _ dependency (12) - adjugate (12)
-
alias
_ method (12) - all? (15)
- allbits? (8)
- angle (12)
-
angle
_ with (12) - antisymmetric? (7)
- any? (23)
- anybits? (8)
- append (12)
-
append
_ as _ bytes (1) - arg (12)
-
arg
_ config (12) - assoc (24)
- at (12)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) - autoload (12)
- autoload? (12)
- backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (24) -
basic
_ auth (12) - begin (24)
- between? (12)
- bind (12)
-
bind
_ call (12) - binmode (12)
- binread (12)
- birthtime (12)
-
bit
_ length (12) - body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - broadcast (12)
- bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
- call (12)
-
callee
_ id (12) - capitalize (12)
- capitalize! (12)
- captures (12)
- casecmp (24)
- casecmp? (18)
- ceil (66)
- ceildiv (3)
- center (12)
- chain (7)
- charpos (12)
- chars (24)
- check (12)
-
check
_ until (12) - children (26)
- chomp (12)
- chomp! (12)
- chop (12)
- chop! (12)
- chown (24)
- chr (36)
- chunk (12)
-
chunk
_ while (12) - clamp (9)
-
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - cleanpath (12)
- clear (12)
-
clear
_ bit! (12) - clone (12)
- close (12)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
- codepoints (24)
- coerce (60)
-
cofactor
_ expansion (12) -
col
_ sep (12) - collect (60)
- collect! (38)
-
collect
_ concat (12) - column (24)
- combination (24)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) -
compile
_ error (12) - component (12)
- concat (45)
- configure (12)
- conj (12)
- conjugate (12)
-
connect
_ from (24) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) - convert (36)
- convpath (12)
- count (84)
-
create
_ makefile (12) - crypt (12)
- curry (23)
- cycle (48)
-
datetime
_ format (12) -
datetime
_ format= (24) - debug (24)
- deconstruct (2)
-
deconstruct
_ keys (9) - dedup (3)
-
def
_ method (12) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) -
default
_ proc (12) -
define
_ task (12) -
defined
_ class (12) - delete (72)
- delete! (12)
-
delete
_ all (12) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (60) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - denominator (48)
- deq (12)
-
destination
_ encoding (12) - det (12)
- detect (24)
- determinant (12)
- difference (19)
- dig (20)
- digest (12)
- digest! (12)
- digits (24)
- directory? (12)
- dirname (12)
- disable (24)
- disasm (12)
- disassemble (12)
- div (24)
- divmod (36)
-
do
_ not _ reverse _ lookup (12) - downcase (12)
- downcase! (12)
- downto (24)
-
drop
_ while (36) - dump (8)
- each (225)
-
each
_ byte (60) -
each
_ char (48) -
each
_ child (38) -
each
_ codepoint (24) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (12) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ line (141) -
each
_ pair (24) -
each
_ slice (24) -
each
_ strongly _ connected _ component (12) -
each
_ strongly _ connected _ component _ from (23) -
each
_ with _ index (72) -
each
_ with _ object (24) - egrep (12)
- eigen (12)
- eigensystem (12)
- element (12)
- enable (24)
- encode (36)
- encode! (24)
- encoding (12)
- end (12)
-
end
_ with? (12) - entity (12)
- entitydecl (12)
- entries (31)
-
entrywise
_ product (8) -
enum
_ for (24) - environment (12)
- eql? (48)
- equal? (12)
- error (24)
-
error
_ bytes (12) - eval (12)
-
eval
_ script (7) - event (12)
- exception (12)
-
excluded
_ from _ list? (12) - execute (48)
- exist? (12)
- exit (12)
- ext (12)
-
family
_ addrinfo (24) - fatal (24)
- fcntl (12)
- fdiv (36)
- feed (12)
- fetch (56)
-
fetch
_ values (2) - field (12)
- field? (12)
-
field
_ size _ limit (12) - fileno (23)
- fill (72)
- filter (63)
- filter! (28)
-
filter
_ map (18) - find (24)
-
find
_ all (36) -
find
_ index (108) - finish (12)
- finite? (9)
- first (72)
-
flat
_ map (12) - flatten (12)
- flatten! (12)
- flock (12)
- floor (78)
-
force
_ encoding (12) -
formatted
_ program _ filename (12) -
garbage
_ collect (12) - gcd (12)
- gcdlcm (12)
- gem (12)
- get (24)
- get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ fields (12) -
get
_ text (12) - getbyte (36)
- getc (24)
- getopts (36)
- gets (48)
- glob (8)
-
grapheme
_ clusters (16) - grep (24)
-
grep
_ v (22) - gsub (48)
- gsub! (48)
-
hadamard
_ product (8) - handler= (12)
- hash (27)
- head (12)
- head2 (24)
- header (12)
-
header
_ convert (24) - headers (24)
- helpfile (12)
- hex (12)
- hexdigest (12)
- hexdigest! (12)
- hstack (12)
-
ignore
_ deadlock= (4) - imag (24)
- imaginary (24)
- import (12)
-
in
_ namespace (12) - include? (60)
- included (12)
- indent= (12)
- index (96)
- infinite? (9)
- info (24)
- inherited (12)
- initialize (12)
- inject (36)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - insert (24)
-
insert
_ output (12) - inspect (163)
- install (24)
-
install
_ rb (12) -
instance
_ eval (12) -
instance
_ exec (12) -
instance
_ methods (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
instruction
_ sequence (7) -
int
_ from _ prime _ division (12) - integer? (12)
- intern (12)
-
internal
_ encoding (12) - intersection (18)
- invert (12)
- invkind (12)
- j (12)
- jj (12)
- join (24)
-
keep
_ if (43) - label (24)
-
laplace
_ expansion (12) - last (12)
- lcm (12)
- length (24)
- lineno (12)
- lines (38)
- ljust (12)
- load (36)
-
local
_ address (12) -
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - log (24)
- lookup (12)
- lstrip (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (24)
- map (60)
- map! (38)
-
marshal
_ load (12) - match (48)
- match? (21)
- max (66)
- max= (12)
-
max
_ by (48) - member? (35)
- merge (12)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) - methods (12)
- min (130)
-
min
_ by (48) - minmax (36)
-
minmax
_ by (24) - minor (24)
- mkdir (12)
-
mod
_ inverse (12) -
module
_ eval (12) -
module
_ function (24) - modulo (24)
-
mon
_ exit (6) - name (17)
- name= (10)
-
named
_ captures (1) - namespace (12)
-
need
_ zip= (12) - negative? (19)
- next (12)
- next! (12)
-
next
_ sibling= (12) - nobits? (8)
- nonzero? (12)
- norm (12)
- normalize (12)
- numerator (48)
-
object
_ id (12) -
object
_ nl= (12) - oct (12)
- offset (24)
-
ole
_ query _ interface (12) - on (144)
-
on
_ head (12) -
on
_ tail (12) - ord (24)
- order (48)
- order! (48)
-
original
_ name (24) - pack (21)
-
package
_ dir= (12) -
package
_ files= (12) - parameters (10)
- parse (48)
- parse! (24)
-
parse
_ csv (12) - partition (12)
- path (56)
- pathconf (12)
- pathmap (12)
- peek (12)
- peep (12)
- permutation (24)
- permute (24)
- permute! (24)
- phase (12)
- pid (12)
- platform= (12)
- pointer (12)
- pointer= (12)
- polar (24)
- pop (24)
- pos (36)
- pos= (36)
- positive? (19)
- post (24)
- post2 (24)
-
post
_ match (12) - pow (24)
-
pre
_ match (12) - pread (8)
- pred (12)
- prepend (21)
- prerelease? (12)
-
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
previous
_ sibling= (12) - prime? (12)
-
prime
_ division (24) -
prime
_ fasttest? (12) -
primitive
_ convert (48) -
primitive
_ errinfo (12) - print (36)
- printf (12)
- priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - product (24)
-
program
_ name (12) -
program
_ name= (12) -
prompt
_ mode (12) -
prompt
_ mode= (12) -
protected
_ method _ defined? (12) -
proxy
_ basic _ auth (12) -
psych
_ y (12) - public (36)
-
public
_ method _ defined? (12) -
public
_ send (24) - push (12)
- putback (24)
- puts (12)
- pwrite (8)
- quo (36)
-
quote
_ char (12) - raise (18)
-
raised
_ exception (12) - rand (24)
- range (12)
- range= (24)
-
range
_ length (12) - rassoc (24)
- rationalize (108)
- read (24)
-
read
_ body (12) - readbyte (36)
- readchar (24)
- readline (24)
- readlines (48)
- real (12)
- real? (24)
- realdirpath (12)
- realpath (24)
- receiver (6)
- rect (36)
- rectangular (36)
- reduce (36)
- refine (12)
- regular? (12)
- reject (96)
- reject! (60)
-
relative
_ path _ from (12) - release (12)
- remainder (36)
-
remote
_ address (12) -
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) - reopen (60)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replacement (12)
- replacement= (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) - reset (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - result (12)
- resume (12)
-
return
_ value (12) -
reverse
_ each (12) - rewind (36)
- rindex (48)
- rjust (12)
- rmdir (12)
- round (105)
- row (24)
-
row
_ sep (12) - rpartition (12)
- rshift! (12)
- rstrip (12)
- rstrip! (12)
-
ruby
_ opts= (12) -
rubygems
_ version= (12) - run (12)
- sample (24)
-
satisfied
_ by? (12) - scan (36)
-
scan
_ full (12) -
scan
_ until (12) - scrub (36)
- scrub! (36)
-
search
_ full (12) - seek (12)
- select (93)
- select! (38)
- self (12)
-
send
_ request (12) - separator (12)
- seplist (12)
-
set
_ backtrace (12) -
set
_ range (36) -
set
_ trace _ func (12) - setbyte (12)
- setproperty (24)
- shift (60)
- signal (12)
-
singleton
_ method _ removed (12) -
singleton
_ methods (12) - size (61)
-
skew
_ symmetric? (7) - skip (12)
-
skip
_ until (12) - sleep (12)
- slice (108)
- slice! (36)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - solve (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (12) -
source
_ encoding (12) -
source
_ location (36) - space= (12)
-
space
_ before= (12) - split (43)
- squeeze (12)
- squeeze! (12)
- src (12)
- start (36)
-
start
_ with? (18) - step (112)
- strftime (12)
- string= (12)
- strip (12)
- strip! (12)
- struct (12)
- sub (36)
- sub! (36)
- succ (12)
- succ! (12)
- sum (54)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) -
super
_ method (11) - superclass (4)
- swapcase (12)
- swapcase! (12)
- synchronize (12)
-
synthesize
_ file _ task (12) - syswrite (12)
-
take
_ while (72) - tell (24)
- terminate (12)
- text (12)
-
thread
_ variable _ set (12) - timeout (16)
- timeouts= (12)
- times (24)
-
to
_ a (43) -
to
_ binary (10) -
to
_ bn (12) -
to
_ c (12) -
to
_ csv (12) -
to
_ d (24) -
to
_ enum (24) -
to
_ f (24) -
to
_ h (19) -
to
_ i (60) -
to
_ int (12) -
to
_ json (228) -
to
_ mailtext (12) -
to
_ path (8) -
to
_ proc (12) -
to
_ r (36) -
to
_ rfc822text (12) -
to
_ s (204) -
to
_ str (12) - tokenize (12)
- tr (24)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
- transfer (12)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - truncate (96)
-
tsort
_ each (12) -
tty
_ output= (12) -
unconverted
_ fields? (12) - undump (8)
- ungetc (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (19)
- uniq (24)
- unknown (24)
- unpack (12)
- unpack1 (9)
- unscan (12)
- unshift (12)
- upcase (12)
- upcase! (12)
- upto (36)
-
use
_ readline (12) -
use
_ readline? (12) - value (48)
-
values
_ at (24) - vstack (12)
-
wait
_ for _ cond (6) -
wait
_ readable (12) - warn (36)
- warning (12)
- with (3)
-
with
_ defaults (12) -
with
_ index (36) -
with
_ object (24) - write (36)
-
write
_ headers? (12) - xmp (12)
- y (12)
- yield (12)
-
yield
_ self (8) - zero? (12)
- zip (72)
- | (24)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (44337.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...れた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_binary("extra_data")
# ※表示の都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00... -
RubyVM
:: InstructionSequence # inspect -> String (41319.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
:: AbstractSyntaxTree :: Node # children -> Array (38219.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
:: InstructionSequence # disasm -> String (38207.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts 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 (38207.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts 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... -
FileUtils
# ruby(*args) {|result , status| . . . } (36371.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (35319.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (35207.0) -
self が表す命令シーケンスの絶対パスを返します。
...nil を返します。
例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 (35207.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......, world"
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::InstructionS... -
RubyVM
:: InstructionSequence # label -> String (35207.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...in>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R......:InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
R......ubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label...