別のキーワード
種類
ライブラリ
- ビルトイン (8539)
- benchmark (48)
- bigdecimal (96)
-
bigdecimal
/ math (36) -
bigdecimal
/ util (43) - csv (228)
- date (72)
- digest (48)
- drb (12)
- erb (12)
- fiber (8)
- fiddle (108)
-
fiddle
/ import (24) - forwardable (48)
-
irb
/ xmp (12) - json (348)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (312)
- matrix (262)
- monitor (12)
-
mutex
_ m (12) -
net
/ http (372) - objspace (72)
- open-uri (28)
- openssl (1164)
- optparse (264)
- pathname (303)
- pp (64)
- prettyprint (12)
- pstore (12)
- psych (362)
- pty (12)
- rake (24)
-
rdoc
/ parser / ruby (24) -
rexml
/ document (252) - ripper (24)
-
ripper
/ filter (12) -
ripper
/ lexer (36) -
ripper
/ sexp (24) -
rubygems
/ requirement (24) -
rubygems
/ specification (36) -
rubygems
/ version (48) - set (266)
- socket (120)
- stringio (132)
- strscan (36)
-
syslog
/ logger (24) - thread (2)
- tsort (93)
- uri (60)
-
webrick
/ ssl (24) - win32ole (228)
- yaml (12)
- zlib (36)
クラス
-
ARGF
. class (36) - Addrinfo (60)
- Array (1297)
- BasicObject (108)
- BasicSocket (24)
- BigDecimal (48)
- Binding (36)
- CSV (168)
-
CSV
:: Row (12) -
CSV
:: Table (36) - Class (24)
- Complex (72)
-
DRb
:: DRbUnknown (12) - Data (36)
- Date (84)
- DateTime (12)
-
Digest
:: Base (48) - Dir (230)
- ERB (12)
- Encoding (24)
-
Encoding
:: Converter (84) - Enumerator (121)
-
Enumerator
:: Yielder (30) - Exception (72)
- Fiber (54)
-
Fiddle
:: CStruct (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (12) -
Fiddle
:: Pointer (36) - File (197)
-
File
:: Stat (12) - Float (45)
- FrozenError (20)
-
Gem
:: Requirement (24) -
Gem
:: Specification (36) -
Gem
:: Version (48) - Hash (499)
- IO (376)
- Integer (52)
-
JSON
:: Parser (24) -
JSON
:: State (84) - KeyError (28)
- Logger (312)
- MatchData (84)
- Matrix (184)
- Method (166)
- Module (128)
-
Net
:: HTTP (228) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (36) - NilClass (14)
- Numeric (12)
- Object (654)
-
ObjectSpace
:: WeakMap (12) -
OpenSSL
:: ASN1 :: ASN1Data (24) -
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (24) -
OpenSSL
:: ASN1 :: Enumerated (24) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: Null (24) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (24) -
OpenSSL
:: ASN1 :: Set (24) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) -
OpenSSL
:: BN (60) - OptionParser (228)
- PP (36)
- Pathname (291)
- PrettyPrint (12)
- Proc (165)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (48) -
RDoc
:: Parser :: Ruby (24) -
REXML
:: Attributes (36) -
REXML
:: CData (12) -
REXML
:: DocType (36) -
REXML
:: Element (96) -
REXML
:: Elements (48) -
REXML
:: Text (24) - Random (105)
- Range (358)
- Rational (24)
- Regexp (84)
- Ripper (84)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (104) - Set (332)
- SignalException (36)
- Socket (36)
- String (488)
- StringIO (120)
- StringScanner (24)
- Struct (94)
- Symbol (24)
-
Syslog
:: Logger (24) - SystemCallError (12)
- Thread (48)
-
Thread
:: Backtrace :: Location (12) -
Thread
:: Queue (8) -
Thread
:: SizedQueue (10) - Time (379)
- TracePoint (48)
-
URI
:: FTP (12) -
URI
:: MailTo (24) - UnboundMethod (60)
- Vector (78)
-
WEBrick
:: GenericServer (12) - WIN32OLE (60)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ VARIANT (36) -
Zlib
:: GzipWriter (24)
モジュール
- Benchmark (48)
- BigMath (60)
- Comparable (87)
- Enumerable (508)
- Fiddle (24)
-
Fiddle
:: Importer (12) - FileTest (117)
- Forwardable (48)
- GC (12)
-
GC
:: Profiler (24) - JSON (168)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - Kernel (807)
- Marshal (48)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (72) - ObjectSpace (192)
-
OpenSSL
:: ASN1 (540) -
OpenURI
:: Meta (24) -
OptionParser
:: Arguable (24) - PTY (12)
- Process (48)
- Psych (162)
-
Rake
:: Cloneable (24) -
RubyVM
:: AbstractSyntaxTree (10) - Signal (24)
- TSort (93)
- URI (24)
-
WEBrick
:: Config (12) -
WIN32OLE
:: VARIANT (12) - Warning (9)
オブジェクト
- ENV (60)
キーワード
- ! (12)
- != (12)
- !~ (12)
-
$ -F (12) -
$ -K (5) -
$ . (12) -
$ ; (12) -
$ > (12) -
$ KCODE (5) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ ~ (12) - % (12)
- & (24)
- * (48)
- + (36)
- - (48)
-
/ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (22)
- << (98)
- <= (22)
- <=> (48)
- == (183)
- === (112)
- =~ (40)
- > (22)
- >= (22)
- >> (26)
- ARGF (12)
- ARGV (12)
- ASN1 (12)
- Array (24)
- BMPString (24)
- BasicObject (12)
- BigDecimal (24)
- BitString (24)
- BlockCaller (12)
- Boolean (24)
- Cipher (12)
- Closure (12)
- Complex (36)
- DATA (12)
- DEFAULT (9)
- Data (3)
-
Data
_ Get _ Struct (12) -
Data
_ Make _ Struct (12) -
Data
_ Wrap _ Struct (12) - ENV (12)
- Encoding (12)
- Enumerated (24)
- Float (12)
- FrozenError (8)
- GC (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
- GzipWriter (12)
- Hash (12)
- IA5String (24)
- INT2NUM (12)
- ISO64String (24)
- InstructionSequence (12)
- Integer (36)
- JSON (12)
-
LEVEL
_ MAP (12) - LL2NUM (12)
- Lazy (12)
- Marshal (12)
- Marshal フォーマット (12)
- Method (12)
- MonitorMixin (12)
-
Mutex
_ m (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (4) - Nodes (12)
- Null (24)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- OptionParser (12)
- PStore (12)
- Pathname (12)
- PrintableString (24)
- Proc (12)
- RSTRING (12)
-
RUBY
_ PATCHLEVEL (12) -
RUBY
_ REVISION (12) - Range (12)
- Rational (24)
- Regexp (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- SSL (12)
- STDERR (12)
- STDIN (12)
- STDOUT (12)
- STR2CSTR (12)
- Sequence (24)
- Set (27)
- SizedQueue (12)
- Stat (12)
- State (12)
- Stream (12)
- String (24)
- StringIO (12)
- StringScanner (12)
- Symbol (12)
- T61String (24)
- Time (12)
- TracePoint (12)
- TreeBuilder (12)
- UTCTime (24)
- UTF8String (24)
- UnboundMethod (12)
- UndefinedConversionError (12)
- UniversalString (24)
- VARIANT (12)
-
VT
_ DISPATCH (12) - VideotexString (24)
- WIN32OLE (12)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (12) -
WIN32OLE
_ VARIANT (12) - YAML (12)
- YAMLTree (12)
- [] (270)
- []= (170)
- ^ (12)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) -
_ id2ref (12) -
_ load (12) - abs (12)
-
absolute
_ path? (6) - accept (24)
- add (48)
- add? (12)
-
add
_ attribute (24) -
add
_ element (12) -
add
_ heap (12) -
add
_ trace _ func (12) -
all
_ symbols (12) - allocate (12)
- append (8)
-
append
_ as _ bytes (1) - arity (12)
- array (12)
-
asciicompat
_ encoding (24) - assoc (12)
- at (65)
-
at
_ exit (12) - atan (12)
- atime (24)
- attribute (12)
-
attributes
_ of (12) -
backtrace
_ locations (24) -
base
_ uri (12) - begin (12)
- benchmark (12)
- between? (12)
- bigdecimal (12)
-
bigdecimal
/ math (12) -
bigdecimal
/ newton (12) -
bigdecimal
/ util (12) - bind (24)
- binding (36)
- birthtime (11)
- bm (12)
- bmbm (12)
-
body
_ stream (12) -
body
_ stream= (12) -
by
_ col (12) -
by
_ col _ or _ row (12) -
by
_ row (12) - byteslice (36)
- call (48)
- caller (36)
-
caller
_ locations (24) - catch (24)
- ceil (6)
- cgi (12)
-
cgi
/ session (12) - check (12)
- children (28)
- chr (24)
- civil (12)
- clamp (15)
- cleanpath (12)
- clone (96)
- close (34)
-
close
_ read (12) - code (12)
- coerce (60)
- collect! (52)
- column (24)
- combination (24)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - compatible? (12)
- compile (36)
-
compile
_ file (12) - configure (12)
- connect (12)
-
connect
_ from (24) -
const
_ load (12) - continuation (12)
- convert (36)
-
copy
_ stream (24) - cos (12)
-
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - covector (12)
- cover? (19)
- create (12)
- csv (12)
- ctime (24)
- curry (24)
- cycle (48)
- debug (36)
- debug? (12)
- decode (12)
-
def
_ delegator (12) -
def
_ instance _ delegator (12) -
default
_ event _ sources (12) -
default
_ proc (12) -
default
_ proc= (12) - define (6)
-
define
_ finalizer (24) - delegate (12)
- delete (60)
- delete? (12)
-
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ if (24) - descend (24)
- det (12)
- detect (24)
- determinant (12)
- difference (12)
- dig (30)
- digest! (12)
- disasm (12)
- disassemble (12)
- disjoint? (12)
- display (12)
- div (12)
- dlunwrap (12)
- dlwrap (12)
- drb (12)
-
drb
/ extservm (12) -
drb
/ gw (12) - drop (12)
- dump (60)
-
dump
_ stream (12) - dup (60)
- each (144)
-
each
_ attribute (12) -
each
_ byte (24) -
each
_ char (24) -
each
_ child (46) -
each
_ index (24) -
each
_ line (72) -
each
_ object (48) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
each
_ with _ object (24) - eigen (12)
- eigensystem (12)
- empty? (9)
- encode (36)
- encode! (24)
- encoding (12)
- end (12)
- entities (12)
- entries (43)
- eql? (123)
- equal? (36)
- error (24)
- error? (12)
- eval (24)
- exception (36)
-
exclude
_ end? (12) - exp (12)
- extend (12)
-
extend
_ object (12) - extended (12)
- fail (36)
-
family
_ addrinfo (24) -
fast
_ generate (12) -
fast
_ unparse (12) - fatal (24)
- fatal? (12)
- fetch (36)
- fiddle (12)
-
fiddle
/ import (12) - file (12)
- fill (72)
- filter (14)
- filter! (28)
- find (36)
-
find
_ index (72) - finish (12)
- first (72)
- flatten (12)
- flatten! (12)
- floor (6)
-
for
_ fd (12) -
force
_ encoding (12) - foreach (72)
- format (24)
- formatter= (12)
- freeze (12)
-
from
_ yaml (12) - frozen? (12)
-
garbage
_ collect (12) - generate (24)
-
generate
_ line (12) - get (24)
- get2 (24)
- getgm (12)
- getlocal (24)
- getoptlong (12)
- gets (12)
- getutc (12)
- getwd (12)
- glob (40)
- gm (24)
- gmtime (12)
- grep (24)
-
grep
_ v (24) - grpowned? (12)
- handler= (12)
- hash (15)
- head2 (24)
-
header
_ converters (12) - helpfile (12)
- hexdigest! (12)
- i (12)
- id2ref (12)
- identical? (12)
- include? (48)
- included (12)
- index (36)
- info (24)
- info? (12)
- initialize (12)
-
initialize
_ copy (12) - inject (36)
- insert (12)
- inspect (96)
-
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ method (12) -
instance
_ of? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) - intersection (18)
- irb (12)
-
is
_ a? (12) - j (12)
- jj (12)
- join (36)
- json (12)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / core (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) -
json
_ create (96) -
keep
_ if (48) -
kind
_ of? (12) - lambda (18)
- lambda? (12)
- last (48)
-
last
_ error (12) -
last
_ modified (12) - level= (12)
- lex (12)
- limit (12)
- load (39)
-
load
_ documents (8) -
load
_ file (24) -
load
_ file! (12) -
load
_ from _ binary (10) -
load
_ stream (24) - local (24)
-
local
_ address (12) -
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - localtime (24)
- log (36)
- logger (12)
- lstat (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- main (12)
- map! (52)
-
marshal
_ dump (24) -
marshal
_ load (12) - match (24)
- mathn (4)
- matrix (12)
- max (46)
- measure (12)
- member? (36)
- members (6)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - merge (48)
- merge! (24)
- method (12)
- methods (12)
- min (46)
- minmax (24)
-
minmax
_ by (24) - mkmf (12)
- mktime (24)
- mtime (24)
- name (12)
- new (1308)
- next (12)
-
next
_ values (12) - none? (32)
- now (12)
-
object
_ id (12) -
object
_ nl (12) -
object
_ nl= (12) - of (22)
-
ole
_ classes (12) -
ole
_ query _ interface (12) - on (144)
- one? (32)
- open (196)
- open-uri (12)
- optparse (12)
- overlap? (2)
- owned? (12)
- p (12)
- pack (21)
- pack テンプレート文字列 (12)
- parameters (24)
- parent (12)
- parse (72)
- parse! (12)
-
parse
_ stream (24) - path (12)
- peek (12)
-
peek
_ values (12) - permutation (24)
- polar (12)
- pop (24)
- post (24)
- post2 (24)
- pp (36)
- pread (8)
- prepend (8)
- prepended (12)
-
pretty
_ generate (12) -
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
pretty
_ unparse (12) - print (36)
- printf (12)
- proc (19)
- produce (6)
-
proper
_ subset? (12) -
proper
_ superset? (12) - pstore (12)
- psych (12)
-
psych
_ y (12) -
psych
_ yaml _ as (4) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ send (24) - push (24)
- putc (12)
- puts (24)
- pwd (12)
- pwrite (8)
- raise (54)
- rand (96)
- range (12)
- range= (24)
- rank (12)
- rassoc (12)
-
raw
_ data (12) -
rb
_ compile _ file (12) -
rb
_ data _ object _ alloc (12) -
rb
_ define _ class _ under (12) -
rb
_ f _ lambda (12) -
rb
_ gc _ mark _ maybe (12) -
rb
_ scan _ args (12) -
reachable
_ objects _ from (12) - read (24)
-
read
_ body (24) - readline (12)
- readlines (24)
- real? (12)
- realpath (24)
- receiver (18)
- rect (12)
- rectangular (12)
- reduce (36)
- regexp (12)
- rehash (12)
- reject (12)
- reject! (24)
-
relative
_ path _ from (12) - release (12)
- reload (12)
-
remote
_ address (12) -
remove
_ instance _ variable (12) - reopen (60)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (36)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) -
respond
_ to? (12) - response (12)
- restore (24)
- result (12)
- resume (12)
-
reverse
_ each (28) - rewind (12)
-
rexml
/ document (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - rindex (36)
-
root
_ node (12) - rotate (12)
- rotate! (12)
- round (33)
- row (24)
- rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ config _ file (12) -
safe
_ load (19) - sample (48)
- scan (12)
-
search
_ convpath (12) - select (24)
- select! (48)
- self (12)
- send (24)
- set (9)
-
set
_ debug _ output (12) -
set
_ range (36) -
set
_ trace _ func (24) - setgid? (12)
- setproperty (24)
- setuid? (12)
-
sev
_ threshold= (12) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) - shift (24)
- shuffle (24)
- shuffle! (24)
- sin (12)
-
singleton
_ method (12) -
singleton
_ methods (12) - size (35)
- size? (12)
- slice (84)
- slice! (36)
- socket? (12)
-
source
_ location (36) -
space
_ before (12) -
space
_ before= (12) - sprintf (12)
- sprintf フォーマット (12)
- start (60)
- stat (24)
- sticky? (12)
- store (12)
- stress= (12)
-
strongly
_ connected _ components (12) - sub (24)
-
sub
_ ext (12) - subset? (12)
- subtract (12)
- succ (7)
- sum (42)
- summarize (24)
- superset? (12)
-
syslog
/ logger (12) - sysopen (12)
- taint (6)
- tainted? (9)
- take (12)
-
take
_ while (24) - tcp (24)
- test (24)
- text= (12)
- throw (12)
-
to
_ a (31) -
to
_ ary (12) -
to
_ binary (10) -
to
_ bn (12) -
to
_ c (12) -
to
_ csv (12) -
to
_ d (43) -
to
_ h (19) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (24) -
to
_ mailtext (12) -
to
_ proc (52) -
to
_ ptr (12) -
to
_ regexp (12) -
to
_ rfc822text (12) -
to
_ ruby (12) -
to
_ s (48) -
to
_ set (24) -
to
_ str (12) -
to
_ value (12) - today (12)
- tokenize (24)
- trace (12)
-
trace
_ object _ allocations (12) -
trace
_ var (36) - transfer (12)
- transform (12)
-
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - trap (24)
-
try
_ convert (28) - tsort (12)
-
tsort
_ each (23) - typelibs (12)
-
undefine
_ finalizer (12) - union (12)
- unknown (24)
- unnormalize (12)
- unpack (12)
- unparse (12)
- unshift (12)
- untaint (6)
-
untrace
_ var (12) - update (24)
- utc (36)
- value (24)
- value= (12)
- wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
- warn (45)
- warn? (12)
- webrick (12)
-
webrick
/ cgi (12) - with (3)
-
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) - write (24)
- xmp (12)
- y (12)
- yaml (12)
-
yaml
/ store (12) -
yaml
_ as (4) -
yaml
_ tag (12) - yield (36)
- zero? (12)
- zip (24)
- | (24)
- はじめに (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス (12)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- パターンマッチ (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 多言語化 (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 正規表現 (12)
- 演算子式 (12)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node
-
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23138.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......を true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<c......ompiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23138.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......を true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<c......ompiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (23138.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...od オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM......::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello
p......rb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>......irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (23132.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param......ンを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compil......e_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (23128.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
このメソッドはProcやメソッドが定義されたファイルを読み込む必要があるため、
irbのようなファイルを介さない対話的環境では動作しません。
@par......す。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LIT@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxT... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23128.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
このメソッドはProcやメソッドが定義されたファイルを読み込む必要があるため、
irbのようなファイルを介さない対話的環境では動作しません。
@par......す。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LIT@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxT... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (23122.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence (23064.0) -
Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
...Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
Method、Proc オブジェクトや Ruby のソースコードを表す文字列
から VM の命令シーケンスを得る事ができます。また、
RubyVM::InstructionSequence オブジェク......Ruby の命令シーケンスコンパイラの設定を
扱う必要がありますが、Ruby の VM がどのように働くかを知るのに有用です。
VM の命令シーケンスの一覧はRuby のソースコード中の insns.def から参照で
きます。
* https://github.com/ruby/......ruby/blob/master/insns.def... -
RubyVM
:: InstructionSequence . disasm(body) -> String (23050.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
#....../tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 0000 c......0009 setlocal num, 0
0012 leave
例2:Method オブジェクトを指定した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
puts RubyVM::InstructionSequence.disasm(method(:hello))
出力:
== disasm: <RubyVM::InstructionSequence:hello@/tmp/method.rb>==========... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (23050.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
#....../tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 0000 c......0009 setlocal num, 0
0012 leave
例2:Method オブジェクトを指定した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
puts RubyVM::InstructionSequence.disasm(method(:hello))
出力:
== disasm: <RubyVM::InstructionSequence:hello@/tmp/method.rb>==========...