ライブラリ
クラス
- Array (19)
-
Benchmark
:: Tms (11) - CSV (11)
-
CSV
:: Row (11) - Data (2)
-
Encoding
:: Converter (55) - IO (66)
- MatchData (48)
- Matrix (22)
- Method (11)
- Module (16)
-
Net
:: FTP (44) - Pathname (22)
-
REXML
:: DocType (11) -
Rake
:: PackageTask (11) - String (15)
- Struct (12)
- Thread (11)
- Tracer (11)
- WIN32OLE (22)
-
WIN32OLE
_ EVENT (11) -
Zlib
:: GzipReader (22)
モジュール
- Benchmark (11)
- Etc (11)
-
GC
:: Profiler (55) - JSON (22)
- Kernel (211)
-
MiniTest
:: Assertions (1) - ObjectSpace (11)
-
OpenSSL
:: ASN1 (11) -
Profiler
_ _ (6) - Psych (12)
-
RubyVM
:: AbstractSyntaxTree (8)
キーワード
-
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NilClass (11)
- Observable (11)
- Proc (11)
- Ruby用語集 (11)
- [] (14)
- []= (11)
- advise (11)
-
assert
_ instance _ of (1) -
attribute
_ of (11) - autoload (22)
- autoload? (11)
- begin (11)
- benchmark (11)
- binread (11)
- binwrite (22)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
-
check
_ signedness (22) -
check
_ sizeof (22) - clear (11)
-
cofactor
_ expansion (11) -
convertible
_ int (22) -
copy
_ stream (11) -
deconstruct
_ keys (2) - disable (11)
- enable (11)
- end (11)
- format (11)
- generate (11)
- gets (11)
-
irb
/ completion (11) - lambda (17)
-
laplace
_ expansion (11) -
memsize
_ of _ all (11) - new (31)
- off (11)
-
off
_ event (11) - offset (22)
-
ole
_ activex _ initialize (11) -
ole
_ show _ help (11) - optparse (11)
- pack (19)
- pack テンプレート文字列 (11)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - proc (18)
-
raw
_ data (11) - read (11)
- readchar (11)
- readline (22)
- report (11)
- retrbinary (22)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (5) -
safe
_ load (12) -
source
_ location (11) -
stop
_ profile (6) - storbinary (22)
- sysconf (11)
- traverse (11)
- unpack (11)
- unparse (11)
- write (22)
- xmlrpc (3)
- クラス/メソッドの定義 (11)
- 変数と定数 (3)
- 手続きオブジェクトの挙動の詳細 (11)
検索結果
先頭5件
- RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node - Profiler
_ _ . # stop _ profile -> nil - MatchData
# byteoffset(name) -> [Integer , Integer] | [nil , nil]
-
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18180.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...byVM::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::AbstractSyntaxTree.of(method(:hello))
# => (SC......pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (18180.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...byVM::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::AbstractSyntaxTree.of(method(:hello))
# => (SC......pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18179.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...byVM::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::AbstractSyntaxTree.of(method(:hello))
# => (SC......pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
Profiler
_ _ . # stop _ profile -> nil (9201.0) -
プロファイルの取得を停止します。
プロファイルの取得を停止します。 -
MatchData
# byteoffset(name) -> [Integer , Integer] | [nil , nil] (6330.0) -
name という名前付きグループに対応する部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...[nil, nil] を返します。
@param name 名前(シンボルか文字列)
@raise IndexError 正規表現中で定義されていない name を指定した場合に発生します。
//emlist[例][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.byteoff......') # => [0, 4]
p $~.byteoffset(:year) # => [0, 4]
p $~.byteoffset('month') # => [7, 8]
p $~.byteoffset(:month) # => [7, 8]
p $~.byteoffset('day') # => [nil, nil]
p $~.byteoffset('century') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#offset... -
MatchData
# offset(name) -> [Integer , Integer] | [nil , nil] (6330.0) -
name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返 します。
...[nil, nil] を返します。
@param name 名前(シンボルか文字列)
@raise IndexError 正規表現中で定義されていない name を指定した場合に発生します。
//emlist[例][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.offset......('year') # => [0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('century') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end......0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('century') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end, MatchData#offset... -
MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil] (6320.0) -
n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...のオフセットの
配列 [start, end] を返します。
n番目の部分文字列がマッチしていなければ [nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#offset... -
MatchData
# offset(n) -> [Integer , Integer] | [nil , nil] (6320.0) -
n 番目の部分文字列のオフセットの配列 [start, end] を返 します。
...ます。
//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}
と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。......end(n) ]
//}
と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#begin, MatchData#end, MatchData#offset... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (6310.0) -
与えられた型のサイズを返します。
...ローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロ... -
Kernel
# check _ sizeof(type , headers = nil) { . . . } -> Integer | nil (6310.0) -
与えられた型のサイズを返します。
...ローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロ... -
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (6304.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...r[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (6250.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...ributeという名前の属性が宣言されていない、
もしくはデフォルト値が宣言されていない、のいずれかの場合は nil を返します。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype......title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
ObjectSpace
. # memsize _ of _ all(klass = nil) -> Integer (6220.0) -
すべての生存しているオブジェクトが消費しているメモリ使用量をバイト単位 で返します。
...うな Ruby のコードで定義できます。
//emlist[例][ruby]{
def memsize_of_all klass = false
total = 0
ObjectSpace.each_object{|e|
total += ObjectSpace.memsize_of(e) if klass == false || e.kind_of?(klass)
}
total
end
//}
戻り値の内容は完全ではない事に注意し... -
WIN32OLE
_ EVENT # off _ event(event = nil) -> () (6213.0) -
WIN32OLE_EVENT#on_eventで登録したブロックを解除します。
...に指定したイベント名を指定しま
す。nilの場合、WIN32OLE_EVENT#on_eventに対してnilを指定したブロッ
クを解除します。
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents')
ev.on_event(:NavigateComplete) {|url| puts url }
...
ev.off_event(:NavigateComplete)...