別のキーワード
ライブラリ
- ビルトイン (2692)
- bigdecimal (61)
- coverage (42)
- csv (231)
- date (33)
- erb (11)
- fiber (8)
- fiddle (33)
-
fiddle
/ import (11) - fileutils (44)
- json (99)
-
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / range (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / time (11) - logger (11)
- matrix (186)
-
net
/ http (66) - openssl (495)
- optparse (44)
- pathname (55)
- pp (33)
- prettyprint (11)
- prime (11)
- psych (168)
- pty (11)
- rake (132)
-
rake
/ packagetask (11) - rbconfig (22)
-
rdoc
/ parser / ruby (11) - resolv (33)
-
rexml
/ document (143) - ripper (22)
-
ripper
/ filter (11) -
ripper
/ lexer (44) -
ripper
/ sexp (22) - rubygems (11)
-
rubygems
/ defaults (11) -
rubygems
/ installer (22) -
rubygems
/ requirement (44) -
rubygems
/ source _ index (22) -
rubygems
/ specification (22) -
rubygems
/ version (33) - securerandom (7)
- set (33)
- socket (88)
- stringio (33)
- strscan (11)
-
syslog
/ logger (11) -
test
/ unit (1) - tsort (85)
- uri (146)
-
webrick
/ ssl (11) - win32ole (77)
クラス
- Addrinfo (11)
- Array (55)
- BigDecimal (61)
- CSV (209)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Class (22)
- Complex (33)
- Coverage (42)
- Data (14)
- Date (44)
- DateTime (11)
- Dir (378)
- ERB (11)
- Encoding (99)
-
Encoding
:: Converter (66) - Enumerator (23)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (11) - Exception (33)
- Fiber (33)
-
Fiddle
:: CStruct (11) -
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Pointer (22) - File (418)
-
File
:: Stat (11) - FrozenError (12)
-
Gem
:: Installer (22) -
Gem
:: Requirement (44) -
Gem
:: SourceIndex (22) -
Gem
:: Specification (22) -
Gem
:: Version (33) - Hash (60)
- IO (176)
- IPSocket (11)
- Integer (21)
-
JSON
:: Parser (11) -
JSON
:: State (22) - KeyError (24)
- Logger (11)
- Matrix (146)
- Module (52)
-
Net
:: HTTP (55) -
Net
:: HTTPResponse (11) - Object (22)
-
OpenSSL
:: ASN1 :: BMPString (22) -
OpenSSL
:: ASN1 :: BitString (22) -
OpenSSL
:: ASN1 :: Boolean (22) -
OpenSSL
:: ASN1 :: Enumerated (22) -
OpenSSL
:: ASN1 :: GeneralString (22) -
OpenSSL
:: ASN1 :: GeneralizedTime (22) -
OpenSSL
:: ASN1 :: GraphicString (22) -
OpenSSL
:: ASN1 :: IA5String (22) -
OpenSSL
:: ASN1 :: ISO64String (22) -
OpenSSL
:: ASN1 :: Integer (22) -
OpenSSL
:: ASN1 :: Null (22) -
OpenSSL
:: ASN1 :: NumericString (22) -
OpenSSL
:: ASN1 :: OctetString (22) -
OpenSSL
:: ASN1 :: PrintableString (22) -
OpenSSL
:: ASN1 :: Sequence (22) -
OpenSSL
:: ASN1 :: Set (22) -
OpenSSL
:: ASN1 :: T61String (22) -
OpenSSL
:: ASN1 :: UTCTime (22) -
OpenSSL
:: ASN1 :: UTF8String (22) -
OpenSSL
:: ASN1 :: UniversalString (22) -
OpenSSL
:: ASN1 :: VideotexString (22) -
OpenSSL
:: BN (33) - OptionParser (44)
- PP (33)
- Pathname (55)
- PrettyPrint (11)
- Proc (18)
-
Psych
:: Visitors :: YAMLTree (11) -
RDoc
:: Parser :: Ruby (11) -
REXML
:: CData (11) -
REXML
:: Document (44) -
REXML
:: Entity (11) -
REXML
:: Text (22) -
REXML
:: XPath (33) -
Rake
:: FileList (11) -
Rake
:: InvocationChain (22) -
Rake
:: NameSpace (11) -
Rake
:: PackageTask (11) -
Rake
:: TaskArguments (11) - Random (70)
- Range (22)
- Regexp (99)
- Resolv (22)
-
Resolv
:: DNS (11) - Ripper (88)
-
Ripper
:: Filter (11) - RubyVM (1)
-
RubyVM
:: InstructionSequence (106) - Set (33)
- SignalException (33)
- Socket (55)
- String (39)
- StringIO (33)
- StringScanner (11)
- Struct (69)
- Symbol (11)
-
Syslog
:: Logger (11) - SystemCallError (11)
- TCPSocket (11)
- Thread (55)
-
Thread
:: Queue (6) - ThreadGroup (11)
- Time (182)
- TracePoint (22)
-
URI
:: FTP (11) - Vector (40)
-
WEBrick
:: GenericServer (11) - WIN32OLE (22)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (22) -
WIN32OLE
_ VARIANT (22)
モジュール
- FileUtils (44)
- GC (99)
-
GC
:: Profiler (44) - Gem (11)
-
Gem
:: QuickLoader (11) - JSON (55)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) - PTY (11)
- Process (7)
- Psych (146)
-
REXML
:: Security (22) - Rake (33)
- RakeFileUtils (44)
- RbConfig (22)
-
RubyVM
:: AbstractSyntaxTree (24) -
RubyVM
:: MJIT (18) - SecureRandom (7)
- TSort (85)
-
Test
:: Unit (1) - URI (135)
- Warning (8)
キーワード
- === (11)
- DEBUG (11)
- DEBUG= (11)
- Proxy (11)
- [] (136)
- []= (11)
-
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) -
absolute
_ path (11) -
absolute
_ path? (5) - accept (11)
- aliases (11)
-
all
_ symbols (11) - alphanumeric (7)
- append (11)
- application (11)
- application= (11)
- array (11)
-
asciicompat
_ encoding (22) - at (47)
- atime (11)
- basename (11)
- basis (11)
- binread (11)
- binwrite (11)
- birthtime (10)
-
body
_ permitted? (11) - build (22)
- bytes (6)
- chdir (44)
- check (11)
- children (14)
- chown (11)
- chroot (11)
- civil (11)
- clear (11)
- clone (11)
- codepage (11)
-
collect
_ method (11) - columns (11)
- combine (14)
- commands (11)
- compatible? (11)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
const
_ load (11) - constants (11)
-
copy
_ stream (22) - correct? (11)
- count (11)
- create (22)
-
create
_ id (11) -
create
_ id= (11) - ctime (11)
- current (11)
-
decode
_ www _ form _ component (11) - default (11)
-
default
_ external (11) -
default
_ external= (11) -
default
_ internal= (11) - define (4)
- delete (44)
-
delete
_ if (22) - diagonal (11)
- dirname (11)
- disable (11)
- disasm (11)
- disassemble (11)
-
double
_ fig (11) - dump (22)
-
dump
_ stream (11) - each (33)
-
each
_ child (28) -
each
_ key (22) -
each
_ pair (22) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) - elements (11)
- empty (11)
- empty? (8)
- enable (11)
- enabled? (6)
- encode (7)
-
encode
_ www _ form _ component (11) -
entity
_ expansion _ limit (11) -
entity
_ expansion _ limit= (11) -
entity
_ expansion _ text _ limit (22) -
entity
_ expansion _ text _ limit= (22) - entries (22)
- escape (18)
- except (4)
- exception (11)
-
exec
_ format (11) - exist? (11)
- exists? (18)
- extname (11)
- extract (44)
- filter (33)
- find (11)
- first (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - foreach (77)
- format (11)
-
from
_ gems _ in (11) -
from
_ prime _ division (11) -
from
_ state (11) -
from
_ yaml (11) - ftype (11)
- generate (11)
-
generate
_ line (11) -
get
_ print (22) - getaddress (22)
- getaddrinfo (11)
- gethostbyname (22)
- gethostname (11)
- getname (11)
- getwd (22)
- glob (44)
- gm (22)
- home (22)
- hstack (11)
- include (11)
- instance (22)
- join (22)
-
json
_ create (88) -
keyword
_ init? (3) -
last
_ match (22) -
last
_ status (7) -
latest
_ gc _ info (22) - lchmod (11)
- lchown (11)
- lex (11)
- limit (11)
-
line
_ stub (6) - link (11)
- list (22)
- load (11)
-
load
_ documents (8) -
load
_ file (11) -
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
load
_ full _ rubygems _ library (11) -
load
_ specification (11) -
load
_ stream (22) - local (22)
-
locale
_ charmap (11) - lstat (11)
- match (11)
- matches? (11)
- members (13)
- mkdir (11)
- mkfifo (9)
- mktime (22)
- mode (22)
- mtime (11)
-
name
_ list (11) - nesting (11)
- new (1396)
-
new
_ seed (11) - now (11)
-
nowrite
_ flag (11) -
nowrite
_ flag= (11) - of (19)
-
ole
_ classes (11) - open (154)
-
original
_ dir (11) - parse (74)
-
parse
_ file (8) -
parse
_ line (11) -
parse
_ stream (22) - parser (11)
- path (11)
- pause (6)
-
peek
_ result (11) - polar (11)
- pp (11)
- produce (5)
- pwd (22)
- quote (11)
- rand (33)
-
raw
_ data (11) -
raw
_ seed (2) - read (11)
- readlines (44)
- readlink (11)
- realpath (11)
- rect (11)
- rectangular (11)
- regexp (22)
- reject (33)
- reject! (22)
- rename (11)
- report (11)
-
resolve
_ feature _ path (1) - result (22)
- resume (6)
- rmdir (11)
- rows (11)
-
ruby2
_ keywords _ hash? (5) -
ruby
_ engine (11) - running? (7)
-
safe
_ load (17) - scalar (11)
-
search
_ convpath (11) -
setup
_ argv (1) - sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) - size (11)
- slice (17)
- split (22)
- sqrt (7)
- start (40)
- stat (33)
- state (11)
- stop (11)
- store (11)
- stress= (11)
-
strongly
_ connected _ components (11) - symlink (11)
- sysopen (11)
- table (11)
- tcp (22)
-
to
_ h (12) -
to
_ json (11) -
to
_ ptr (11) - today (11)
-
token
_ match (11) - tokenize (11)
-
total
_ time (11) - trace (11)
- truncate (11)
-
try
_ convert (47) - tsort (11)
-
tsort
_ each (21) - typelibs (11)
- umask (22)
- union (11)
- unlink (22)
- unnormalize (11)
- urandom (7)
-
used
_ modules (8) - using (11)
- utc (22)
- utime (11)
- ver (5)
-
verbose
_ flag (11) -
verbose
_ flag= (11) - vstack (11)
- warn (8)
-
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
yaml
_ tag (11) - yield (11)
- zero (29)
検索結果
先頭5件
-
RbConfig
. ruby -> String (18118.0) -
ruby コマンドのフルパスを返します。
...
ruby コマンドのフルパスを返します。... -
Hash
. ruby2 _ keywords _ hash?(hash) -> bool (6192.0) -
Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。
...Module#ruby2_keywordsやProc#ruby2_keywordsによる
ruby2_keywords フラグが設定されているかどうかを返します。
このメソッドはデバッグや調査、シリアライゼーションのために本当に必要な場合のために
用意されていて、普通のプログ......れていません。
ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。
//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}
@see Module#ruby2_keywords, Proc#ruby2_keywords... -
Gem
. ruby _ engine -> String (6118.0) -
Ruby処理系実装の種類を表す文字列を返します。
...
Ruby処理系実装の種類を表す文字列を返します。... -
Gem
:: QuickLoader . load _ full _ rubygems _ library (6101.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。 -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (3123.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 (3123.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 (3119.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 (3119.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 (3117.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 (3113.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 (3113.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 (3107.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 (3107.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 (3107.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...