7553件ヒット
[1-100件を表示]
(0.145秒)
別のキーワード
ライブラリ
クラス
-
ARGF
. class (72) - Array (877)
- BasicObject (60)
- BigDecimal (96)
- Binding (12)
- CSV (36)
-
CSV
:: Row (36) -
CSV
:: Table (60) - Class (12)
- Complex (66)
- Data (15)
- Date (36)
- Dir (92)
- Enumerator (72)
- Exception (12)
- Fiber (30)
- File (16)
-
File
:: Stat (12) - Float (83)
- FrozenError (6)
-
Gem
:: Version (36) - Hash (370)
- IO (210)
- Integer (471)
-
JSON
:: State (24) - MatchData (48)
- Matrix (239)
-
Matrix
:: LUPDecomposition (12) - Method (115)
- Module (296)
- Mutex (2)
- Numeric (311)
- Object (189)
-
OpenSSL
:: BN (96) - OptionParser (240)
- Pathname (254)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (14)
-
Psych
:: Stream (24) -
REXML
:: Attributes (12) -
REXML
:: Child (24) -
REXML
:: Element (36) -
Rake
:: FileList (12) - Random (36)
- Range (128)
- Rational (87)
-
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (84) - Set (96)
- String (1357)
- StringIO (100)
- StringScanner (72)
- Struct (40)
- Symbol (39)
- Thread (58)
-
Thread
:: Backtrace :: Location (60) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10) -
Thread
:: SizedQueue (10) - ThreadGroup (12)
- Time (24)
- TracePoint (72)
- UnboundMethod (36)
- Vector (36)
-
WIN32OLE
_ TYPE (12)
モジュール
- Comparable (27)
- Enumerable (335)
キーワード
- != (12)
- !~ (12)
- % (38)
- & (12)
- * (36)
- ** (12)
- + (36)
- +@ (22)
- - (12)
- -@ (31)
-
/ (11) - < (46)
- << (86)
- <= (46)
- <=> (138)
- == (87)
- === (32)
- =~ (12)
- > (46)
- >= (46)
- >> (14)
- [] (108)
- []= (91)
-
_ dump (12) - abbrev (12)
- abs (12)
- abs2 (12)
-
absolute
_ path (24) - add (12)
-
add
_ namespace (24) -
add
_ row (12) -
alias
_ method (8) - allbits? (8)
-
angle
_ with (12) - anybits? (8)
- append (8)
-
append
_ as _ bytes (1) -
append
_ features (12) - autoload (12)
-
backtrace
_ locations (24) -
base
_ label (24) - between? (12)
-
bind
_ call (12) - binmode (12)
- binread (12)
-
bit
_ length (12) - broadcast (12)
- bsearch (24)
-
bsearch
_ index (20) -
by
_ col _ or _ row! (12) -
by
_ row! (12) - byterindex (3)
- bytes (38)
- call (24)
- capitalize! (12)
- casecmp (12)
- casecmp? (9)
- ceil (24)
- ceildiv (3)
- center (12)
- chars (24)
- children (26)
- chomp (12)
- chomp! (12)
- chop! (12)
- chown (12)
- chr (36)
-
chunk
_ while (12) - clamp (15)
-
class
_ eval (12) -
class
_ exec (12) - clear (12)
-
clear
_ bit! (12) - close (22)
- closed? (12)
- codepoints (24)
- coerce (72)
- collect! (38)
- column (24)
- combination (24)
- compact (4)
-
compare
_ by _ identity (12) - concat (54)
- configure (12)
- conj (12)
- conjugate (12)
- count (12)
- cover? (14)
- crypt (12)
- curry (22)
- deconstruct (3)
-
deconstruct
_ keys (9) - dedup (3)
-
default
_ event _ sources (12) -
defined
_ class (12) - delete (24)
- delete! (12)
-
delete
_ if (60) -
delete
_ namespace (12) -
delete
_ prefix! (8) -
delete
_ suffix! (8) -
deprecate
_ constant (12) - difference (7)
- dig (20)
- digits (24)
- dirname (12)
- disable (24)
- disasm (12)
- disassemble (12)
- div (12)
- divmod (36)
- downcase! (12)
- downto (24)
- each (261)
-
each
_ byte (60) -
each
_ char (48) -
each
_ child (38) -
each
_ codepoint (24) -
each
_ cons (8) -
each
_ entry (39) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ key (12) -
each
_ line (141) -
each
_ pair (24) -
each
_ slice (8) -
each
_ value (12) -
each
_ with _ index (72) - eigen (12)
- eigensystem (12)
- enable (24)
- encode (36)
- encode! (24)
-
end
_ with? (12) - entries (19)
-
enum
_ for (24) - eql? (27)
- equal? (36)
- eval (12)
- exception (12)
- fdiv (36)
-
fetch
_ values (2) - fileno (11)
- fill (72)
- filter! (28)
- finite? (9)
- flatten (12)
- flatten! (12)
- floor (36)
- fnmatch (12)
-
force
_ encoding (12) - freeze (24)
- gcd (12)
- gcdlcm (12)
- getbyte (12)
- getc (12)
-
grapheme
_ clusters (16) - gsub! (48)
- hash (24)
- hex (12)
- hstack (12)
- import (12)
- included (12)
- infinite? (9)
- inherited (12)
- inject (36)
- insert (24)
- inspect (55)
-
instance
_ eval (12) -
instance
_ exec (12) -
keep
_ if (43) - label (24)
- lcm (12)
- lines (38)
- ljust (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map! (38)
-
marshal
_ load (12) - match (24)
- match? (18)
-
max
_ by (48) - merge (48)
- merge! (24)
- minor (24)
-
mod
_ add (12) -
mod
_ exp (12) -
mod
_ inverse (12) -
mod
_ mul (12) -
mod
_ sub (12) -
module
_ eval (12) -
module
_ exec (12) - modulo (12)
- name= (10)
- negative? (19)
- next (12)
- next! (12)
-
next
_ sibling= (12) -
next
_ year (12) - nobits? (8)
- nonzero? (12)
- offset (24)
- on (144)
-
on
_ head (12) -
on
_ tail (12) - ord (12)
- order! (24)
- overlap? (2)
- parse! (12)
-
parse
_ csv (12) - partition (12)
- path (32)
- permutation (24)
- permute! (12)
- polar (12)
- pos= (12)
- positive? (19)
- pow (24)
- pred (12)
- prepend (20)
-
prepend
_ features (12) - prepended (12)
- prerelease? (12)
-
pretty
_ print (12) -
prev
_ float (11) -
prev
_ year (12) -
previous
_ sibling= (12) -
prime
_ division (12) -
private
_ class _ method (24) -
private
_ constant (12) - product (24)
-
proper
_ subset? (12) -
proper
_ superset? (12) - public (36)
- push (24)
- puts (12)
- quo (12)
- raise (18)
- rand (36)
- rationalize (12)
- realpath (24)
- receiver (6)
- rect (12)
- rectangular (12)
- reduce (36)
- rehash (12)
- reject (24)
- reject! (60)
-
relative
_ path _ from (12) - release (12)
- remainder (36)
-
remove
_ method (12) - reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (36)
- reset (12)
- resume (12)
-
reverse
_ each (28) - rewind (24)
- rindex (12)
- rjust (12)
- rotate! (12)
- round (12)
- row (24)
- rpartition (12)
- rshift! (12)
- rstrip! (12)
- run (12)
- sample (48)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select! (43)
- shuffle! (24)
- signal (12)
-
singleton
_ methods (12) - size (13)
- slice (72)
-
slice
_ when (12) - solve (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - split (26)
- squeeze! (12)
- start (24)
-
start
_ with? (18) - step (124)
- strip! (12)
- sub (24)
- sub! (36)
- subset? (12)
- subtract (12)
- succ (12)
- succ! (12)
- sum (24)
- summarize (24)
-
super
_ method (11) - superset? (12)
- swapcase! (12)
- synchronize (12)
- tally (8)
- terminate (12)
- then (7)
- times (24)
-
to
_ a (19) -
to
_ ary (12) -
to
_ bn (12) -
to
_ csv (12) -
to
_ enum (24) -
to
_ h (19) -
to
_ path (8) -
to
_ proc (12) -
to
_ s (72) -
tr
_ s! (12) -
transform
_ keys! (20) -
transform
_ values! (18) - truncate (12)
- trust (9)
- undump (8)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (7)
- uniq (24)
- unscan (12)
- unshift (12)
- untrust (9)
- upcase! (12)
- update (24)
- upto (36)
- vstack (12)
-
wait
_ readable (12) - wakeup (12)
- with (3)
-
with
_ index (24) -
yield
_ self (8) - zip (48)
- | (12)
検索結果
先頭5件
-
TracePoint
# self -> object (21132.0) -
イベントを発生させたオブジェクトを返します。
...イベントを発生させたオブジェクトを返します。
以下のようにする事で同じ値を取得できます。
//emlist[例][ruby]{
trace.binding.eval('self')
//}
@see TracePoint#binding......返します。
以下のようにする事で同じ値を取得できます。
なお、self メソッドは binding が nil になる :c_call および :c_return イベントに対しても正しく動作します。
//emlist[例][ruby]{
trace.binding.eval('self')
//}
@see TracePoint#binding... -
Module
# prepend _ features(mod) -> self (12354.0) -
Module#prepend から呼び出されるメソッドで、 prepend の処理の実体です。このメソッド自体は mod で指定した モジュール/クラスの継承チェインの先頭に self を追加します。
...Module#prepend から呼び出されるメソッドで、
prepend の処理の実体です。このメソッド自体は mod で指定した
モジュール/クラスの継承チェインの先頭に self を追加します。
このメソッドを上書きすることで、prepend の処理を変......す。
@param mod prepend を呼び出したモジュール
@return mod が返されます
//emlist[例][ruby]{
class Recorder
RECORDS = []
end
module X
def self.prepend_features(mod)
Recorder::RECORDS << mod
end
end
class A
prepend X
end
class B
include X
end
class C
prepend X......end
Recorder::RECORDS # => [A, C]
//}
@see Module#prepend, Module#prepended... -
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (12135.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
:: InstructionSequence # inspect -> String (12135.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 # path -> String (12135.0) -
self が表す命令シーケンスの相対パスを返します。
...
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1......# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
>......iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (12129.0) -
self が表す命令シーケンスの絶対パスを返します。
...
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
i......# => 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#... -
RubyVM
:: InstructionSequence # label -> String (12129.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1......rb で実行した場合
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, wor......ld"
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_la... -
RubyVM
:: InstructionSequence # base _ label -> String (12123.0) -
self が表す命令シーケンスの基本ラベルを返します。
...
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.co......た場合
# /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::InstructionSequence.of(method(:hel......lo)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label... -
RubyVM
:: InstructionSequence # disasm -> String (12123.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...