別のキーワード
ライブラリ
- ビルトイン (2978)
- bigdecimal (65)
- coverage (47)
- csv (264)
- date (36)
- erb (12)
- fiber (8)
- fiddle (36)
-
fiddle
/ import (12) - fileutils (48)
- json (108)
-
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 (12)
- matrix (204)
-
net
/ http (72) - openssl (540)
- optparse (48)
- pathname (60)
- pp (36)
- prettyprint (12)
- prime (12)
- psych (186)
- pty (12)
- rake (144)
-
rake
/ packagetask (12) - rbconfig (24)
-
rdoc
/ parser / ruby (12) - resolv (36)
-
rexml
/ document (156) - ripper (24)
-
ripper
/ filter (12) -
ripper
/ lexer (48) -
ripper
/ sexp (24) - rubygems (12)
-
rubygems
/ defaults (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (48) -
rubygems
/ source _ index (24) -
rubygems
/ specification (24) -
rubygems
/ version (36) - securerandom (8)
- set (27)
- socket (96)
- stringio (36)
- strscan (12)
-
syslog
/ logger (12) -
test
/ unit (1) - tsort (93)
- uri (158)
-
webrick
/ ssl (12) - win32ole (84)
クラス
- Addrinfo (12)
- Array (60)
- BigDecimal (65)
- CSV (240)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (24)
- Complex (36)
- Coverage (47)
- Data (21)
- Date (48)
- DateTime (12)
- Dir (414)
- ERB (12)
- Encoding (108)
-
Encoding
:: Converter (72) - Enumerator (25)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (12) - Exception (36)
- Fiber (36)
-
Fiddle
:: CStruct (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Pointer (24) - File (456)
-
File
:: Stat (12) - FrozenError (14)
-
Gem
:: Installer (24) -
Gem
:: Requirement (48) -
Gem
:: SourceIndex (24) -
Gem
:: Specification (24) -
Gem
:: Version (36) - Hash (66)
- IO (192)
- IPSocket (12)
- Integer (24)
-
JSON
:: Parser (12) -
JSON
:: State (24) - KeyError (28)
- Logger (12)
- Matrix (160)
- Module (60)
-
Net
:: HTTP (60) -
Net
:: HTTPResponse (12) - Object (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 (36) - OptionParser (48)
- PP (36)
- Pathname (60)
- PrettyPrint (12)
- Proc (19)
-
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: CData (12) -
REXML
:: Document (48) -
REXML
:: Entity (12) -
REXML
:: Text (24) -
REXML
:: XPath (36) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (24) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (12) -
Rake
:: TaskArguments (12) - Random (77)
- Range (24)
- Regexp (108)
- Resolv (24)
-
Resolv
:: DNS (12) - Ripper (96)
-
Ripper
:: Filter (12) - RubyVM (1)
-
RubyVM
:: InstructionSequence (116) - Set (36)
- SignalException (36)
- Socket (60)
- String (43)
- StringIO (36)
- StringScanner (12)
- Struct (76)
- Symbol (12)
-
Syslog
:: Logger (12) - SystemCallError (12)
- TCPSocket (12)
- Thread (60)
-
Thread
:: Queue (8) - ThreadGroup (12)
- Time (204)
- TracePoint (24)
-
URI
:: FTP (12) - Vector (44)
-
WEBrick
:: GenericServer (12) - WIN32OLE (24)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ VARIANT (24)
モジュール
- FileUtils (48)
- GC (108)
-
GC
:: Profiler (48) - Gem (12)
-
Gem
:: QuickLoader (12) - JSON (60)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - PTY (12)
- Process (8)
- Psych (162)
-
REXML
:: Security (24) - Rake (36)
- RakeFileUtils (48)
- RbConfig (24)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (21) - SecureRandom (8)
- TSort (93)
-
Test
:: Unit (1) - URI (146)
- Warning (10)
キーワード
- === (12)
- DEBUG (12)
- DEBUG= (12)
- Proxy (12)
- [] (150)
- []= (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
absolute
_ path (12) -
absolute
_ path? (6) - accept (12)
- aliases (12)
-
all
_ symbols (12) - alphanumeric (8)
- append (12)
- application (12)
- application= (12)
- array (12)
-
asciicompat
_ encoding (24) - at (53)
- atime (12)
- basename (12)
- basis (12)
- binread (12)
- binwrite (12)
- birthtime (11)
-
body
_ permitted? (12) - build (24)
- bytes (7)
- categories (1)
- chdir (48)
- check (12)
- children (16)
- chown (12)
- chroot (12)
- civil (12)
- clear (12)
- clone (12)
- codepage (12)
-
collect
_ method (12) - columns (12)
- combine (16)
- commands (12)
- compatible? (12)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) -
const
_ load (12) - constants (12)
-
copy
_ stream (24) - correct? (12)
- count (12)
- create (24)
-
create
_ id (12) -
create
_ id= (12) - ctime (12)
- current (12)
-
decode
_ www _ form _ component (12) - default (12)
-
default
_ external (12) -
default
_ external= (12) -
default
_ internal= (12) - define (6)
- delete (48)
-
delete
_ if (24) - diagonal (12)
- dirname (12)
- disable (12)
- disasm (12)
- disassemble (12)
-
double
_ fig (12) - dump (24)
-
dump
_ stream (12) - each (36)
-
each
_ child (32) -
each
_ key (24) -
each
_ pair (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - elements (12)
- empty (12)
- empty? (9)
- enable (12)
- enabled? (7)
- encode (7)
-
encode
_ www _ form _ component (12) -
entity
_ expansion _ limit (12) -
entity
_ expansion _ limit= (12) -
entity
_ expansion _ text _ limit (24) -
entity
_ expansion _ text _ limit= (24) - entries (24)
- escape (19)
- except (4)
- exception (12)
-
exec
_ format (12) - exist? (12)
- exists? (18)
- extname (12)
- extract (48)
- filter (36)
- find (12)
- first (12)
- fnmatch (12)
- fnmatch? (12)
-
for
_ fd (12) - foreach (96)
- format (12)
-
from
_ gems _ in (12) -
from
_ prime _ division (12) -
from
_ state (12) -
from
_ yaml (12) - ftype (12)
- generate (12)
-
generate
_ line (12) -
get
_ print (24) - getaddress (24)
- getaddrinfo (12)
- gethostbyname (24)
- gethostname (12)
- getname (12)
- getwd (24)
- glob (48)
- gm (24)
- home (24)
- hstack (12)
- include (12)
- instance (24)
- join (24)
-
json
_ create (96) -
keyword
_ init? (4) -
last
_ match (24) -
last
_ status (8) -
latest
_ gc _ info (24) - lchmod (12)
- lchown (12)
- lex (12)
- limit (12)
-
line
_ stub (7) - link (12)
- list (24)
- load (15)
-
load
_ documents (8) -
load
_ file (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) -
load
_ full _ rubygems _ library (12) -
load
_ specification (12) -
load
_ stream (24) - local (24)
-
locale
_ charmap (12) - lstat (12)
- match (12)
- matches? (12)
- members (15)
- mkdir (12)
- mkfifo (10)
- mktime (24)
- mode (24)
- mtime (12)
-
name
_ list (12) - nesting (12)
- new (1531)
-
new
_ seed (12) - now (12)
-
nowrite
_ flag (12) -
nowrite
_ flag= (12) - of (22)
-
ole
_ classes (12) - open (168)
-
original
_ dir (12) - parse (82)
-
parse
_ file (10) -
parse
_ line (12) -
parse
_ stream (24) - parser (12)
- path (12)
- pause (7)
-
peek
_ result (12) - polar (12)
- pp (12)
- produce (6)
- pwd (24)
- quote (12)
- rand (36)
-
raw
_ data (12) -
raw
_ seed (2) - read (12)
- readlines (48)
- readlink (12)
- realpath (12)
- rect (12)
- rectangular (12)
- regexp (24)
- reject (36)
- reject! (24)
- rename (12)
- report (12)
-
resolve
_ feature _ path (1) - result (24)
- resume (7)
- rmdir (12)
- rows (12)
- ruby (12)
-
ruby2
_ keywords _ hash? (6) -
ruby
_ engine (12) - running? (8)
-
safe
_ load (19) - scalar (12)
-
search
_ convpath (12) -
setup
_ argv (1) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) - size (12)
- slice (19)
- split (24)
- sqrt (8)
- start (44)
- stat (36)
- state (12)
- stop (12)
- store (12)
- stress= (12)
-
strongly
_ connected _ components (12) - symlink (12)
- sysopen (12)
- table (12)
- tcp (24)
-
to
_ h (14) -
to
_ json (12) -
to
_ ptr (12) - today (12)
-
token
_ match (12) - tokenize (12)
-
total
_ time (12) - trace (12)
- truncate (12)
-
try
_ convert (52) - tsort (12)
-
tsort
_ each (23) - typelibs (12)
- umask (24)
- union (12)
- unlink (24)
- unnormalize (12)
- urandom (8)
-
used
_ modules (12) - using (12)
- utc (24)
- utime (12)
- ver (5)
-
verbose
_ flag (12) -
verbose
_ flag= (12) - vstack (12)
- warn (9)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
-
yaml
_ tag (12) - yield (12)
- zero (32)
検索結果
先頭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
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence
-
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23123.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......れかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . new(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (23123.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......れかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node (23119.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...ドを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9......文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコ......あるようなノードに置き換えてツリーを生成します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# bo......dy:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# => (SCOPE@1:0-1:15
# tbl: [:x, :y]
# args: nil
# body: (BLOCK@1:0-1:15 (LASGN@1:0-1:5 :x (L... -
RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23119.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコ......あるようなノードに置き換えてツリーを生成します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# bo......dy:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# => (SCOPE@1:0-1:15
# tbl: [:x, :y]
# args: nil
# body: (BLOCK@1:0-1:15 (LASGN@1:0-1:5 :x (L... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (23117.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param......細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::Inst... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node (23113.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...のファイルパスを指定します
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# bo......dy:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (CALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}......換えてツリーを生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# bo... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23113.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...換えてツリーを生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# bo......dy:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (CALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (23107.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...す。
//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 (23107.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...す。
//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 (23107.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 . of(body) -> RubyVM :: InstructionSequence (23101.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...クトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSe......quence: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
puts "hello, wor......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
. resolve _ feature _ path (23035.0) -
require を呼んだときに読み込まれるファイルを特定します。 このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
...require を呼んだときに読み込まれるファイルを特定します。
このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
//emlist[][ruby]{
p RubyVM.resolve_feature_path('set')
# => [:rb, "/build-all-ruby/2.6.0/lib/ruby/2.6.0/set.rb"]
//}... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (23007.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返
します。
//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :......>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=...