4127件ヒット
[1-100件を表示]
(0.119秒)
別のキーワード
ライブラリ
クラス
-
ARGF
. class (36) - Array (336)
- BasicObject (84)
- BigDecimal (204)
- Binding (30)
- CSV (12)
-
CSV
:: Table (24) - Class (12)
- Complex (36)
- Dir (36)
- Fiber (30)
- Float (20)
- FrozenError (6)
-
Gem
:: Version (24) - Hash (191)
- IO (84)
- Integer (213)
-
Matrix
:: LUPDecomposition (12) - Method (35)
- Module (204)
- Mutex (2)
- Numeric (103)
- Object (202)
-
OpenSSL
:: BN (72) - OptionParser (204)
- Pathname (72)
-
REXML
:: Attributes (36) -
REXML
:: Child (24) -
REXML
:: Element (36) -
Rake
:: FileList (24) - Range (14)
- Rational (30)
-
Resolv
:: DNS :: Name (12) -
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (120) - Set (12)
- String (699)
- StringIO (38)
- Struct (22)
- Symbol (36)
- Thread (24)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10) - Time (108)
- TracePoint (60)
- UnboundMethod (48)
-
WIN32OLE
_ TYPE (12)
モジュール
- Comparable (21)
- Enumerable (295)
-
OptionParser
:: Arguable (24)
キーワード
- ! (12)
- != (12)
- % (24)
- ** (11)
- + (12)
- < (24)
- <= (24)
- <=> (24)
- == (60)
- === (36)
- > (24)
- >= (24)
- [] (96)
- []= (12)
-
_ dump (12) - abbrev (12)
- abs (36)
- abs2 (12)
-
absolute
_ path (24) - allbits? (8)
- anybits? (8)
-
append
_ as _ bytes (1) -
backtrace
_ locations (24) -
base
_ label (24) - basename (12)
- between? (12)
- bind (12)
-
bind
_ call (12) - binmode (24)
- binread (12)
-
bit
_ length (12) - broadcast (12)
- bsearch (24)
-
bsearch
_ index (20) - byterindex (3)
- bytes (38)
- casecmp? (9)
- ceil (24)
- chars (12)
- children (7)
-
chunk
_ while (12) - clamp (9)
-
class
_ eval (12) -
clear
_ bit! (12) - closed? (12)
- codepoints (12)
- coerce (12)
- combination (24)
- compact! (9)
-
compare
_ by _ identity (12) - curry (11)
- default (24)
-
default
_ event _ sources (12) -
define
_ singleton _ method (24) - delete (12)
-
delete
_ if (24) - dig (30)
- digits (12)
- disable (24)
- disasm (12)
- disassemble (12)
- disjoint? (12)
- display (12)
- divmod (12)
-
each
_ byte (72) -
each
_ char (12) -
each
_ codepoint (12) -
each
_ cons (4) -
each
_ grapheme _ cluster (8) -
each
_ pair (36) -
each
_ slice (8) -
each
_ with _ index (24) - enable (24)
- encode (36)
-
end
_ with? (18) - entries (7)
-
enum
_ for (24) - eql? (24)
- equal? (12)
- eval (24)
-
fetch
_ values (2) - filter! (28)
- finite? (9)
-
first
_ column (7) -
first
_ lineno (19) - floor (24)
- friday? (12)
- getbyte (12)
- getc (12)
- gmt? (12)
-
grapheme
_ clusters (8) - gsub! (60)
- hash (12)
- include? (12)
- inherited (12)
-
initialize
_ copy (12) - inject (36)
- insert (12)
- inspect (37)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) - iseuc (12)
- itself (12)
-
keep
_ if (48) - label (24)
-
last
_ column (7) -
last
_ lineno (7) - lineno (12)
- lshift! (12)
- magnitude (24)
-
mask
_ bits! (12) - match (12)
- match? (9)
-
max
_ by (48) -
mod
_ inverse (12) -
module
_ eval (12) - modulo (12)
- monday? (12)
- mountpoint? (12)
- namespace (12)
- namespaces (24)
- negative? (29)
- next (12)
- next! (12)
-
next
_ sibling= (12) - nobits? (8)
- nonzero? (24)
- on (144)
-
on
_ head (12) -
on
_ tail (12) - order! (24)
- path (24)
- permutation (12)
- permute! (12)
- pos= (12)
- positive? (29)
- pow (22)
- prefixes (24)
- prerelease? (12)
-
pretty
_ print (12) -
previous
_ sibling= (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) - putc (12)
- raise (18)
- readlines (12)
- realpath (12)
- receiver (17)
- reduce (36)
- relative? (12)
-
relative
_ path _ from (12) - remainder (12)
-
repeated
_ combination (24) - resume (12)
-
reverse
_ each (12) - rewind (12)
- rshift! (12)
- sample (24)
- saturday? (12)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select! (43)
-
set
_ bit! (12) - shift (12)
- signal (12)
-
singleton
_ class? (12) -
singleton
_ methods (12) - slice (72)
-
slice
_ when (12) - solve (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (12) -
source
_ location (7) - split (14)
-
start
_ with? (18) - step (62)
- sub! (48)
-
subdomain
_ of? (12) - succ (12)
- succ! (12)
- sum (24)
- sunday? (12)
- synchronize (12)
- taint (9)
- thursday? (12)
-
to
_ a (19) -
to
_ bn (12) -
to
_ enum (24) -
to
_ h (19) -
to
_ proc (12) -
to
_ s (54) -
transform
_ keys! (20) -
transform
_ values! (18) - tuesday? (12)
- unbind (12)
-
unicode
_ normalized? (11) - union (7)
- uniq (24)
- unshift (12)
- untaint (9)
- upto (12)
- utc? (12)
- wait (12)
-
wait
_ readable (12) - wednesday? (12)
-
yield
_ self (16) - zero? (12)
- zip (48)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # inspect -> String (38229.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#labe......l,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # disassemble -> String (38217.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1......( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (38117.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
...
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(m......ethod(:foo)).first_lineno
# => 2... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (35229.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...
self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # last _ lineno -> Integer (35229.0) -
ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_lineno # => 1
//}... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (35223.0) -
self が表す命令シーケンスの絶対パスを返します。
...
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
i......q.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::Ins......tructionSequence#path... -
RubyVM
:: InstructionSequence # label -> String (35223.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例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
puts "hello, w......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 # base _ label -> String (35217.0) -
self が表す命令シーケンスの基本ラベルを返します。
...
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.co......mpile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::Instruction......Sequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label... -
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (35129.0) -
self の子ノードを配列で返します。
...
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
:: AbstractSyntaxTree :: Node # first _ column -> Integer (35129.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//}...