5087件ヒット
[1-100件を表示]
(0.096秒)
別のキーワード
ライブラリ
- ビルトイン (3959)
- abbrev (12)
- bigdecimal (24)
- csv (180)
-
fiddle
/ import (12) -
irb
/ context (12) - matrix (14)
- mkmf (12)
-
net
/ http (180) - openssl (36)
- ostruct (12)
- pathname (33)
- pp (24)
- psych (60)
- rake (48)
-
rake
/ testtask (12) -
rdoc
/ parser / ruby (12) - resolv (12)
-
rexml
/ document (132) -
ripper
/ lexer (24) -
rubygems
/ requirement (12) -
rubygems
/ specification (48) - set (9)
- stringio (62)
- strscan (72)
- thread (2)
-
webrick
/ httprequest (12) - win32ole (60)
クラス
-
ARGF
. class (24) - Array (1119)
- BigDecimal (24)
- Binding (35)
- CSV (24)
-
CSV
:: Table (156) - Data (3)
- Encoding (12)
-
Encoding
:: Converter (60) -
Encoding
:: InvalidByteSequenceError (24) - Enumerator (96)
-
Enumerator
:: Lazy (178) -
Enumerator
:: Yielder (24) -
File
:: Stat (24) -
Gem
:: Requirement (12) -
Gem
:: Specification (48) - Hash (451)
- IO (78)
-
IRB
:: Context (12) - Integer (8)
- MatchData (22)
- Matrix (14)
- Method (70)
- Module (208)
- Mutex (4)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (60) -
Net
:: HTTPResponse (48) - Numeric (62)
- Object (160)
-
OpenSSL
:: BN (36) - OpenStruct (12)
- Pathname (33)
- Proc (42)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (36) -
REXML
:: Element (72) -
Rake
:: FileList (36) -
Rake
:: TaskArguments (12) -
Rake
:: TestTask (12) - Random (12)
- Range (38)
-
Resolv
:: DNS :: Name (12) -
Ripper
:: Lexer (24) -
RubyVM
:: AbstractSyntaxTree :: Node (49) -
RubyVM
:: InstructionSequence (130) - Set (12)
- String (199)
- StringIO (62)
- StringScanner (72)
- Struct (22)
- Symbol (71)
- Thread (36)
-
Thread
:: Mutex (20) -
Thread
:: Queue (12) - Time (96)
- TracePoint (43)
- UnboundMethod (36)
-
WEBrick
:: HTTPRequest (12) - WIN32OLE (36)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (526)
-
Fiddle
:: Importer (12) - Kernel (36)
-
Net
:: HTTPHeader (48)
キーワード
- + (12)
- << (36)
- <=> (12)
- == (24)
- [] (72)
- []= (36)
- abbrev (12)
-
absolute
_ path (12) -
add
_ attribute (12) -
add
_ field (12) -
alias
_ method (4) - all? (21)
- antisymmetric? (7)
- any? (62)
- anybits? (8)
- append (8)
-
append
_ as _ bytes (1) - arity (24)
- assoc (12)
- at (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
attribute
_ of (12) -
attributes
_ of (12) -
base
_ label (12) - basename (12)
- bind (12)
- body (24)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
-
bsearch
_ index (20) -
by
_ col (12) -
by
_ col! (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
-
callee
_ id (12) - casecmp (12)
- casecmp? (9)
- children (7)
-
class
_ variables (12) - coerce (24)
- collect (12)
-
collect
_ concat (24) - combination (24)
- compact (4)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - concat (18)
- constants (12)
- count (12)
- curry (46)
- cycle (48)
- default (12)
-
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delete (48)
-
delete
_ at (12) -
delete
_ attribute (12) - dig (30)
- directory? (12)
- disasm (12)
- disassemble (12)
- display (12)
- drop (12)
-
drop
_ while (12) - dummy? (12)
- each (60)
-
each
_ byte (72) -
each
_ element _ with _ attribute (12) -
each
_ entry (24) -
each
_ key (24) -
each
_ pair (12) - empty? (93)
-
end
_ with? (6) - entity (12)
- entries (7)
-
enum
_ for (12) - eos? (12)
- eql? (12)
-
error
_ bytes (12) - eval (12)
- event (12)
- except (4)
- fetch (72)
-
fetch
_ values (22) - filter (14)
- filter! (21)
- first (24)
-
first
_ column (7) -
first
_ lineno (19) -
flat
_ map (24) - force (12)
- friday? (12)
- get (12)
-
get
_ byte (12) - getbyte (48)
-
group
_ by (24) -
has
_ key? (12) - hash (12)
- headers (12)
- include? (24)
-
incomplete
_ input? (12) -
initialize
_ copy (12) - inject (24)
- insert (12)
- inspect (19)
-
install
_ rb (12) -
instance
_ methods (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - intern (12)
- intersect? (4)
- intersection (6)
- isatty (12)
-
keep
_ if (36) - key (12)
- key? (36)
- keys (12)
- label (12)
- last (12)
-
last
_ column (7) -
last
_ lineno (7) - lazy (12)
- lex (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variables (11) - map (12)
- match? (9)
- max (84)
-
max
_ by (48) - member? (12)
- members (15)
- merge (12)
- merge! (12)
-
method
_ id (12) - methods (12)
- min (84)
-
min
_ by (48) - minmax (12)
-
minmax
_ by (24) - mode (12)
-
module
_ function (12) - monday? (12)
- name (29)
-
named
_ captures (12) - namespace (12)
- namespaces (12)
- none? (21)
-
num
_ bytes (12) -
ole
_ query _ interface (12) - one? (21)
-
original
_ name (24) - pack (21)
- parameters (24)
- parse (12)
- path (24)
- peek (12)
- peep (12)
- permutation (12)
- pop (12)
- post (12)
- prefix (12)
- prefixes (12)
- prepend (20)
-
pretty
_ print (24) -
pretty
_ print _ cycle (12) -
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (36)
-
private
_ instance _ methods (12) -
prompt
_ mode (12) -
proxy
_ basic _ auth (12) -
psych
_ y (12) - public (48)
- push (12)
- putback (12)
- query (12)
- rassoc (12)
- read (12)
-
read
_ body (24) - readbyte (36)
- readlines (12)
- reduce (24)
- reject (12)
-
relative
_ path _ from (12) -
repeated
_ combination (24) -
request
_ body _ permitted? (12) -
required
_ ruby _ version (12) -
required
_ rubygems _ version (12) -
respond
_ to _ missing? (12) -
response
_ body _ permitted? (12) -
reverse
_ each (24) - rotate (12)
- rotate! (12)
-
ruby2
_ keywords (18) -
ruby
_ opts (12) -
rubygems
_ version (12) - sample (24)
-
satisfied
_ by? (12) - saturday? (12)
- scan (12)
- scrub (12)
- scrub! (12)
- select (24)
- select! (36)
-
set
_ encoding _ by _ bom (6) - setbyte (12)
- setproperty (24)
- shift (12)
-
singleton
_ methods (12) -
skew
_ symmetric? (7) - slice (20)
- slice! (36)
-
slice
_ after (11) -
slice
_ before (36) -
slice
_ when (11) - sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - split (12)
-
start
_ with? (6) - step (62)
- sticky? (12)
- store (12)
- strftime (12)
-
sub
_ type (12) -
subdomain
_ of? (12) - sum (18)
- sunday? (12)
- sync (12)
- synchronize (12)
- take (12)
-
take
_ while (36) - tally (10)
- thursday? (12)
-
to
_ a (67) -
to
_ ary (24) -
to
_ binary (10) -
to
_ enum (12) -
to
_ h (26) -
to
_ proc (12) -
to
_ ruby (24) -
to
_ sym (12) - tokenize (12)
- transform (12)
-
transform
_ keys (20) -
transform
_ keys! (20) -
try
_ lock (12) - tty? (12)
- tuesday? (12)
- type (7)
- union (7)
- uniq (24)
- unpack (12)
- unshift (12)
- update (12)
-
values
_ at (36) - wednesday? (12)
-
with
_ index (36) -
with
_ object (24) - yield (12)
-
yield
_ self (16) - zip (48)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (38343.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...して返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソ......_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary(......都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00\x00\x16\x02\x00\x00\n\x00\x00\x00\x01
# \x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\x84\x01\x00\x00\x88\x01\x00
# \x00\x02\x02\x00\x00x86_64-darwin15\x00*\x00\x00\x00\x00\x00\x00\x00\x01
# \x00\x00\x00\x00... -
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (35313.0) -
self の種類を Symbol で返します。
...self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//}... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (35201.0) -
self が表す命令シーケンスの絶対パスを返します。
...ます。
例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 (35201.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......# 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::InstructionSequence#label... -
RubyVM
:: InstructionSequence # disassemble -> String (35201.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 o......pt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # label -> String (35201.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...す。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
pu......end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label... -
RubyVM
:: InstructionSequence # to _ a -> Array (32225.0) -
self の情報を 14 要素の配列にして返します。
...ォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数......もない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。ト......合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensur... -
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (32219.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 # eval -> object (32201.0) -
self の命令シーケンスを評価してその結果を返します。
...self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ column -> Integer (32119.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//}...