10275件ヒット
[1-100件を表示]
(0.112秒)
別のキーワード
ライブラリ
- ビルトイン (7723)
- abbrev (12)
- bigdecimal (204)
- csv (228)
- date (60)
-
io
/ wait (24) - json (24)
- kconv (12)
- matrix (327)
- openssl (144)
- optparse (264)
- ostruct (19)
- pathname (443)
- pp (12)
- prime (60)
- psych (24)
- rake (72)
- resolv (12)
-
rexml
/ document (168) -
rubygems
/ version (48) - set (207)
- stringio (100)
- strscan (72)
- thread (4)
- win32ole (12)
クラス
-
ARGF
. class (108) - Array (1002)
- BasicObject (84)
- BigDecimal (204)
- Binding (30)
- CSV (60)
-
CSV
:: Row (36) -
CSV
:: Table (108) - Class (12)
- Complex (78)
- Data (27)
- Date (60)
- Dir (104)
- Enumerator (72)
-
Enumerator
:: Lazy (12) - Exception (48)
- Fiber (30)
- File (24)
-
File
:: Stat (12) - Float (150)
- FrozenError (6)
-
Gem
:: Version (48) - Hash (589)
- IO (336)
- Integer (531)
-
JSON
:: State (24) - MatchData (96)
- Matrix (239)
-
Matrix
:: LUPDecomposition (12) - Method (139)
- Module (503)
- Mutex (4)
- Numeric (347)
- Object (318)
-
OpenSSL
:: BN (132) - OpenStruct (19)
- OptionParser (240)
- Pathname (443)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (50)
-
Psych
:: Stream (24) -
REXML
:: Attributes (36) -
REXML
:: Child (24) -
REXML
:: Element (108) -
Rake
:: FileList (72) - Random (36)
- Range (127)
- Rational (87)
- Refinement (4)
- Regexp (12)
-
Resolv
:: DNS :: Name (12) -
RubyVM
:: AbstractSyntaxTree :: Node (49) -
RubyVM
:: InstructionSequence (120) - Set (276)
- SignalException (24)
- String (1476)
- StringIO (100)
- StringScanner (72)
- Struct (143)
- Symbol (45)
- Thread (63)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (20) -
Thread
:: SizedQueue (10) - ThreadGroup (24)
- Time (187)
- TracePoint (84)
- UnboundMethod (48)
- UncaughtThrowError (11)
- Vector (76)
-
WIN32OLE
_ TYPE (12)
モジュール
- Comparable (27)
- Enumerable (361)
-
OptionParser
:: Arguable (24)
キーワード
- ! (12)
- != (12)
- !~ (12)
- % (50)
- & (12)
- * (36)
- ** (12)
- + (36)
- +@ (22)
- - (12)
- -@ (43)
-
/ (11) - < (46)
- << (110)
- <= (46)
- <=> (150)
- == (111)
- === (56)
- =~ (12)
- > (46)
- >= (46)
- >> (26)
- [] (108)
- []= (91)
-
_ dump (12) - abbrev (12)
- abs (36)
- abs2 (12)
- absolute? (12)
-
absolute
_ path (24) - add (24)
- add? (12)
-
add
_ namespace (24) -
add
_ row (12) -
alias
_ method (8) - allbits? (8)
-
angle
_ with (12) - anybits? (8)
- append (8)
-
append
_ features (12) - ascend (24)
- atime (12)
- autoload (12)
- b (12)
-
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) -
by
_ col! (12) -
by
_ col _ or _ row! (12) -
by
_ row! (12) - byterindex (3)
- bytes (38)
- call (24)
- capitalize! (12)
- casecmp (12)
- casecmp? (9)
- cause (12)
- ceil (36)
- ceildiv (3)
- center (12)
- chars (24)
- children (26)
- chomp (12)
- chomp! (12)
- chop! (12)
- chown (12)
- chr (36)
-
chunk
_ while (12) - clamp (15)
- class (12)
-
class
_ eval (24) -
class
_ exec (12) - clear (60)
-
clear
_ bit! (12) -
clear
_ exclude (12) - clone (24)
- close (34)
- closed? (12)
- codepoints (24)
- coerce (72)
- collect! (64)
- column (24)
- combination (24)
- compact (25)
- compact! (21)
-
compare
_ by _ identity (12) - concat (54)
- configure (12)
- conj (12)
- conjugate (12)
-
const
_ added (3) - count (12)
- covector (12)
- cover? (14)
- crypt (12)
- ctime (12)
- curry (22)
- deconstruct (3)
-
deconstruct
_ keys (9) - dedup (3)
- default (24)
-
default
_ event _ sources (12) -
define
_ singleton _ method (24) -
defined
_ class (12) - delete (48)
- delete! (12)
- delete? (12)
-
delete
_ if (96) -
delete
_ namespace (12) -
delete
_ prefix! (8) -
delete
_ suffix! (8) -
deprecate
_ constant (12) - descend (24)
- difference (7)
- dig (30)
- digits (24)
- dirname (12)
- disable (24)
- disasm (12)
- disassemble (12)
- disjoint? (12)
- display (12)
- div (12)
- divmod (36)
- downcase! (12)
- downto (24)
- dup (24)
- each (336)
-
each
_ byte (72) -
each
_ char (48) -
each
_ child (38) -
each
_ codepoint (72) -
each
_ cons (8) -
each
_ entry (39) -
each
_ filename (12) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ key (24) -
each
_ line (144) -
each
_ pair (48) -
each
_ slice (8) -
each
_ value (24) -
each
_ with _ index (72) - eigen (12)
- eigensystem (12)
- empty? (9)
- enable (24)
- encode (36)
- encode! (24)
-
end
_ with? (18) - entries (19)
-
enum
_ for (24) - eql? (51)
- equal? (36)
- eval (24)
- exception (24)
- existing! (12)
- extend (12)
-
extend
_ object (12) - extended (12)
- fdiv (36)
-
fetch
_ values (20) - fileno (11)
- fill (72)
- filter! (28)
- finite? (9)
-
first
_ column (7) -
first
_ lineno (19) - flatten (24)
- flatten! (24)
- floor (36)
- flush (12)
- fnmatch (12)
-
force
_ encoding (12) - freeze (24)
- friday? (12)
- gcd (12)
- gcdlcm (12)
- getbyte (12)
- getc (12)
- gmt? (12)
- gmtime (12)
-
grapheme
_ clusters (16) - gsub! (60)
-
has
_ elements? (12) - hash (36)
- hex (12)
- hstack (12)
- i (12)
- import (12)
-
import
_ methods (4) - include (12)
- include? (12)
- included (12)
-
included
_ modules (12) - infinite? (9)
- inherited (12)
-
initialize
_ copy (12) - inject (36)
- insert (24)
- inspect (130)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) - iseuc (12)
- itself (12)
-
keep
_ if (48) - label (24)
-
last
_ column (7) -
last
_ lineno (7) - lazy (12)
- lcm (12)
- length (12)
- lineno (12)
- lines (38)
- list (12)
- ljust (12)
- localtime (24)
- lshift! (12)
- lstrip! (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (24)
- map! (64)
-
marshal
_ load (12) -
mask
_ bits! (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 (24) -
module
_ exec (12) - modulo (24)
- monday? (12)
- mountpoint? (12)
- name= (10)
- names (12)
- namespace (12)
- namespaces (24)
- negative? (29)
- next (24)
- next! (12)
-
next
_ float (11) -
next
_ sibling= (12) -
next
_ year (12) - nobits? (8)
- nonzero? (24)
- offset (24)
- on (144)
-
on
_ head (12) -
on
_ tail (12) - ord (12)
- order! (24)
- overlap? (2)
- owned? (12)
- parent (12)
- parse! (12)
-
parse
_ csv (12) - partition (12)
- path (36)
- permutation (24)
- permute! (12)
- polar (12)
- pos= (12)
- positive? (29)
- pow (24)
- pred (12)
- prefixes (24)
- 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 (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) - push (24)
- putc (12)
- puts (12)
- quo (12)
- raise (18)
- rand (36)
- rationalize (12)
- read (12)
- readlines (12)
- realpath (24)
- receiver (17)
- rect (12)
- rectangular (12)
- reduce (36)
- rehash (12)
- reject (24)
- reject! (60)
- relative? (12)
-
relative
_ path _ from (12) - release (12)
- remainder (36)
-
remove
_ method (12) - reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (48)
- reset (12)
- resolve (12)
- resume (12)
- reverse (12)
- reverse! (24)
-
reverse
_ each (52) - rewind (24)
- rindex (12)
- rjust (12)
- root (12)
- root? (12)
-
root
_ node (12) - rotate! (12)
- round (12)
- row (24)
- rpartition (12)
- rshift! (12)
- rstrip! (12)
- run (12)
-
safe
_ level (5) - sample (48)
- saturday? (12)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select! (48)
-
set
_ bit! (12) - shift (12)
- shuffle! (24)
- signal (12)
- signm (12)
- signo (12)
-
singleton
_ class? (12) -
singleton
_ methods (12) - size (24)
- skip (12)
- slice (72)
-
slice
_ when (12) - solve (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) -
source
_ location (7) - split (26)
- squeeze! (12)
- start (24)
-
start
_ with? (18) - step (124)
- strip! (12)
- sub (24)
- sub! (48)
-
subdomain
_ of? (12) - subset? (12)
- subtract (12)
- succ (31)
- succ! (12)
- sum (24)
- summarize (24)
- sunday? (12)
-
super
_ method (11) - superset? (12)
- swapcase! (12)
- synchronize (12)
- taint (9)
- tally (10)
- tap (12)
- terminate (12)
- then (14)
- thursday? (12)
- times (24)
-
to
_ a (43) -
to
_ ary (12) -
to
_ bn (12) -
to
_ c (24) -
to
_ csv (12) -
to
_ enum (24) -
to
_ f (24) -
to
_ h (101) -
to
_ hash (12) -
to
_ i (12) -
to
_ int (24) -
to
_ path (12) -
to
_ proc (46) -
to
_ s (122) -
to
_ str (12) -
tr
_ s! (12) -
transform
_ keys! (20) -
transform
_ values! (18) - truncate (12)
- trust (9)
- tuesday? (12)
- type (7)
- unbind (12)
-
undef
_ method (12) - undump (8)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (7)
- uniq (48)
- uniq! (24)
- unlink (12)
- unscan (12)
- unshift (12)
- untaint (9)
- untrust (9)
- upcase! (12)
- update (24)
- upto (36)
- using (12)
- utc (12)
- utc? (12)
- vstack (12)
- wait (12)
-
wait
_ readable (12) - wakeup (12)
- wednesday? (12)
- with (3)
-
with
_ index (24) -
yield
_ self (16) - zero? (12)
- zip (48)
- | (12)
- ~ (12)
検索結果
先頭5件
-
TracePoint
# self -> object (18120.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... -
Object
# yield _ self -> Enumerator (6173.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すの......は良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerat......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# yield _ self {|x| . . . } -> object (6173.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
"my string".yield_self {|s| s.upcase } # => "MY STRING"
3.next.yield_self {|x| x**x }.to_s # => "256"
//}
値をメソッドチェインのパイプラインに次々と渡すの......は良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerat......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# itself -> object (6123.0) -
self を返します。
...
self を返します。
//emlist[][ruby]{
string = 'my string' # => "my string"
string.itself.object_id == string.object_id # => true
//}... -
Object
# yield _ self -> Enumerator (3167.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すの......は良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerat......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# yield _ self {|x| . . . } -> object (3167.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すの......は良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerat......返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
RubyVM
:: InstructionSequence # path -> String (3029.0) -
self が表す命令シーケンスの相対パスを返します。
...
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1......+ 2')
# => <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.r......b')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # to _ a -> Array (3029.0) -
self の情報を 14 要素の配列にして返します。
...
self の情報を 14 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバー......命令シーケンスを構成する命令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_... -
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (3023.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 (3023.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ lineno -> Integer (3023.0) -
ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_lineno # => 1
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (3023.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 _ column -> Integer (3023.0) -
ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_column # => 5
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # last _ lineno -> Integer (3023.0) -
ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_lineno # => 1
//}...