別のキーワード
ライブラリ
- ビルトイン (2491)
- bigdecimal (65)
- coverage (23)
- csv (252)
- date (36)
- erb (12)
- fiber (8)
- fiddle (36)
-
fiddle
/ import (12) - fileutils (48)
- json (84)
-
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / time (12) - logger (12)
- matrix (180)
-
net
/ http (60) - openssl (456)
- optparse (48)
- pathname (24)
- pp (36)
- prettyprint (12)
- prime (12)
- psych (142)
- 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 (18)
- socket (72)
- stringio (36)
- strscan (12)
-
test
/ unit (1) - tsort (93)
- uri (158)
-
webrick
/ ssl (12) - win32ole (84)
クラス
- Addrinfo (12)
- Array (48)
- BigDecimal (65)
- CSV (240)
-
CSV
:: Row (12) - Complex (36)
- Coverage (23)
- Data (6)
- Date (36)
- 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 (6)
-
Gem
:: Installer (24) -
Gem
:: Requirement (48) -
Gem
:: SourceIndex (24) -
Gem
:: Specification (24) -
Gem
:: Version (36) - Hash (24)
- IO (192)
- IPSocket (12)
- Integer (24)
-
JSON
:: Parser (12) -
JSON
:: State (24) - KeyError (14)
- Logger (12)
- Matrix (160)
- Module (12)
-
Net
:: HTTP (48) -
Net
:: HTTPResponse (12) -
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (12) -
OpenSSL
:: ASN1 :: Enumerated (12) -
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 (12) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (12) -
OpenSSL
:: ASN1 :: Set (12) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) -
OpenSSL
:: BN (12) - OptionParser (48)
- PP (36)
- Pathname (24)
- PrettyPrint (12)
-
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 (53)
- Range (12)
- Regexp (84)
- Resolv (24)
-
Resolv
:: DNS (12) - Ripper (96)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (116) - Set (24)
- SignalException (36)
- Socket (48)
- String (43)
- StringIO (36)
- StringScanner (12)
- Struct (20)
- Thread (48)
-
Thread
:: Queue (4) - Time (204)
- TracePoint (24)
-
URI
:: FTP (12) - Vector (20)
-
WEBrick
:: GenericServer (12) - WIN32OLE (24)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ VARIANT (24)
モジュール
- FileUtils (48)
- GC (84)
-
GC
:: Profiler (48) - Gem (12)
-
Gem
:: QuickLoader (12) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - PTY (12)
- Process (8)
- Psych (130)
-
REXML
:: Security (24) - Rake (36)
- RakeFileUtils (48)
- RbConfig (24)
-
RubyVM
:: AbstractSyntaxTree (23) -
RubyVM
:: MJIT (21) - SecureRandom (8)
- TSort (93)
-
Test
:: Unit (1) - URI (146)
- Warning (10)
キーワード
- DEBUG (12)
- [] (84)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
absolute
_ path (12) -
absolute
_ path? (6) - accept (12)
- aliases (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)
- 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) -
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 (12)
-
each
_ child (32) -
each
_ pair (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - empty (12)
- empty? (9)
- 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)
- 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)
- gethostname (12)
- getname (12)
- getwd (12)
- glob (48)
- gm (24)
- home (24)
- hstack (12)
- include (12)
- instance (24)
- join (24)
-
json
_ create (48) -
keyword
_ init? (4) -
last
_ match (12) -
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
_ 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)
- mkdir (12)
- mkfifo (10)
- mktime (24)
- mode (24)
- mtime (12)
-
name
_ list (12) - nesting (12)
- new (1232)
-
new
_ seed (12) - now (12)
-
nowrite
_ flag (12) -
nowrite
_ flag= (12) - of (15)
-
ole
_ classes (12) - open (168)
-
original
_ dir (12) - parse (82)
-
parse
_ file (10) -
parse
_ line (12) - path (12)
- pause (7)
- polar (12)
- pp (12)
- produce (6)
- pwd (12)
- quote (12)
- rand (24)
-
raw
_ data (12) -
raw
_ seed (2) - read (12)
- readlines (48)
- readlink (12)
- realpath (12)
- rect (12)
- rectangular (12)
- regexp (24)
- reject (12)
- reject! (24)
- rename (12)
- report (12)
- result (12)
- resume (7)
- rmdir (12)
- rows (12)
- ruby (12)
-
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)
- stop (12)
- store (12)
-
strongly
_ connected _ components (12) - symlink (12)
- sysopen (12)
- table (12)
- tcp (24)
-
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)
- 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)
- yield (12)
- zero (32)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String - RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node
-
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (32517.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......tions コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# i......rb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (32407.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 . load _ from _ binary _ extra _ data(binary) -> String (32307.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (29623.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
... Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数 file......。
@param line 引数 source の 1 行目の行番号を指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参......照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node (29213.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...スを指定します
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (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)))
//}......根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を......を生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (FCALL... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (29213.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...根ノードを返します。
@param pathname パースする対象のファイルパスを指定します
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を......を生成します。
@raise SyntaxError pathname から取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (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
:: InstructionSequence . compile _ option -> Hash (29107.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>f......alse,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=... -
RubyVM
:: InstructionSequence . compile _ option=(options) (29101.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
...シーケンスのコンパイル時のデフォルトの最適化オプションを引数
options で指定します。
@param options コンパイル時の最適化オプションを true、false、nil、
Hash のいずれかで指定します。true を指定した場合は......nil を指定した場合はいずれ
のオプションも変更しません。また、Hash を指定した
場合は以下のキーに対して、true か false を指定する事で個
別に有効、無効を指定します。
//emlist{
* :inline_c......instructions_unification
* :operands_unification
* :peephole_optimization
* :specialized_instruction
* :stack_caching
* :tailcall_optimization
* :trace_instruction
//}
:debug_level をキーに指定した場合は値を数値で指定します。
.new、.compile、.compi... -
RubyVM
:: InstructionSequence . disasm(body) -> String (29101.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::Inst......ructionSequence.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 cont: 0012
|-----------------------------------------------......-------------------
local table (size: 2, argc: 0 [opts: 0, rest: -1, post: 0, block: -1] s1)
[ 2] num
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 dup
0009 setlocal... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (29101.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::Inst......ructionSequence.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 cont: 0012
|-----------------------------------------------......-------------------
local table (size: 2, argc: 0 [opts: 0, rest: -1, post: 0, block: -1] s1)
[ 2] num
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 dup
0009 setlocal...