種類
ライブラリ
- ビルトイン (1017)
- benchmark (44)
- csv (55)
- date (66)
- etc (11)
- fiddle (22)
-
fiddle
/ import (11) - fileutils (22)
-
io
/ console (22) -
irb
/ context (33) - json (33)
-
json
/ add / date _ time (11) - logger (1)
- matrix (45)
-
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (22)
-
net
/ ftp (44) - objspace (22)
- observer (11)
- openssl (33)
- pathname (22)
- profiler (6)
- psych (23)
-
rake
/ packagetask (11) -
rexml
/ document (11) -
rubygems
/ dependency _ list (11) - socket (429)
- stringio (11)
- strscan (22)
- time (88)
- tracer (11)
- tsort (11)
- un (11)
-
webrick
/ log (11) - win32ole (55)
- zlib (22)
クラス
-
ARGF
. class (55) - Array (140)
-
Benchmark
:: Tms (22) - CSV (44)
-
CSV
:: Table (11) - Data (10)
- DateTime (77)
- Encoding (44)
-
Encoding
:: Converter (55) -
Enumerator
:: Lazy (10) -
Fiddle
:: Pointer (22) -
Gem
:: DependencyList (11) - IO (146)
-
IRB
:: Context (33) - Integer (44)
-
JSON
:: State (11) - MatchData (48)
- Matrix (33)
- Method (11)
- Module (33)
-
Net
:: FTP (44) - Numeric (11)
- Object (68)
-
OpenSSL
:: PKey :: EC :: Group (22) - Pathname (22)
- Proc (22)
-
REXML
:: DocType (11) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (33) - Socket (209)
-
Socket
:: Option (11) - String (26)
- StringIO (11)
- StringScanner (22)
- Struct (12)
- Symbol (10)
- SystemCallError (11)
- Thread (22)
- Time (121)
- Tracer (11)
- Vector (12)
-
WEBrick
:: BasicLog (11) - WIN32OLE (22)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (11) -
WIN32OLE
_ PARAM (11) -
Zlib
:: GzipReader (22)
モジュール
- Benchmark (22)
- Etc (11)
-
Fiddle
:: Importer (11) - FileUtils (22)
-
GC
:: Profiler (66) - JSON (22)
- Kernel (112)
-
MiniTest
:: Assertions (2) - ObjectSpace (66)
-
OpenSSL
:: ASN1 (11) - Process (11)
-
Profiler
_ _ (6) - Psych (12)
-
RubyVM
:: AbstractSyntaxTree (8) -
Socket
:: Constants (209) - TSort (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (33)
- Application (1)
- FORMAT (22)
-
IPV6
_ RTHDR (22) -
IPV6
_ RTHDRDSTOPTS (22) -
IP
_ MTU (22) -
IP
_ ROUTER _ ALERT (22) -
IP
_ TOS (22) -
MSG
_ COMPAT (22) -
MSG
_ EOF (22) -
MSG
_ FLUSH (22) -
MSG
_ OOB (22) - Marshal フォーマット (11)
-
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
NI
_ NOFQDN (22) - Observable (11)
- Ruby用語集 (11)
-
SJIS
_ SOFTBANK (11) -
SJIS
_ SoftBank (11) -
SO
_ BROADCAST (22) -
SO
_ OOBINLINE (22) -
SO
_ PEERCRED (22) -
SO
_ PEERNAME (22) -
TCP
_ KEEPCNT (22) -
TCP
_ LINGER2 (22) -
TCP
_ NOPUSH (22) -
TCP
_ SYNCNT (22) -
TCP
_ WINDOW _ CLAMP (22) -
UTF8
_ SOFTBANK (11) -
UTF8
_ SoftBank (11) - [] (40)
- []= (12)
- advise (11)
-
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
attribute
_ of (11) - autoload (22)
- autoload? (11)
-
base
_ label (11) - begin (11)
- benchmark (11)
- binread (11)
- binwrite (22)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
-
check
_ sizeof (22) - chmod (11)
- chr (22)
- civil (11)
- class (11)
- coerce (11)
- cofactor (22)
-
cofactor
_ expansion (11) - combination (22)
- commercial (11)
-
const
_ set (11) -
copy
_ stream (11) - curry (22)
-
deconstruct
_ keys (2) - digits (22)
- disable (11)
-
each
_ object (44) - enable (11)
- enabled? (11)
- end (11)
-
end
_ with? (5) - eof (33)
- eof? (33)
- exec (11)
- fatal (11)
- fetch (33)
- format (11)
- generate (11)
- getlocal (11)
- gets (11)
-
handle
_ interrupt (11) - httpdate (22)
-
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) -
instance
_ of? (11) - ioflush (11)
-
is
_ a? (11) - iso8601 (11)
- jd (11)
-
kind
_ of? (11) - label (11)
- lambda (17)
-
laplace
_ expansion (11) - linger (11)
- localtime (11)
-
memsize
_ of (11) -
memsize
_ of _ all (11) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
net
/ smtp (11) - new (68)
-
new
_ offset (11) - off (11)
-
off
_ event (11) - offset (22)
-
offset
_ vtbl (11) - oflush (11)
-
ole
_ activex _ initialize (11) -
ole
_ show _ help (11) - ordinal (11)
- output? (11)
- pack (19)
- pack テンプレート文字列 (11)
- permutation (22)
- pointer= (11)
- pos= (11)
- pread (7)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) -
print
_ profile (6) - proc (18)
- pwrite (7)
-
raw
_ data (11) -
rb
_ time _ timespec _ new (9) - read (11)
- readbyte (11)
- readchar (22)
- readline (22)
-
remove
_ entry _ secure (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) - report (11)
- result (11)
- retrbinary (22)
- rfc2822 (22)
- rfc822 (22)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ security (11) -
safe
_ load (12) - seek (44)
-
set
_ generator (11) - sizeof (11)
-
source
_ location (11) -
spec
_ predecessors (11) -
start
_ with? (5) - storbinary (22)
- strftime (11)
- sysconf (11)
- sysseek (11)
-
test
/ unit (1) -
to
_ f (11) -
to
_ json (11) - traverse (11)
-
tsort
_ each _ child (11) - unpack (11)
- unparse (11)
-
with
_ index (10) - write (22)
- xmlschema (11)
-
yaml
_ tag (11) - クラス/メソッドの定義 (11)
- パターンマッチ (11)
- 変数と定数 (3)
検索結果
先頭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 - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - Profiler
_ _ . # print _ profile(file) -> ()
-
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18358.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...では動作しません。
@param proc Procもしくはメソッドオブジェクトを指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を......ます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリーを生成します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# t......: 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))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
#... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (18358.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...では動作しません。
@param proc Procもしくはメソッドオブジェクトを指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を......ます。
@param error_tolerant true を指定すると、構文エラーが発生した際にエラー箇所を type が :ERROR であるようなノードに置き換えてツリーを生成します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# t......: 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))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
#... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18339.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...
@param proc Procもしくはメソッドオブジェクトを指定します。
//emlist[][ruby]{
pp RubyVM::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))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# 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
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (18243.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...を作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar......onSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello
puts "hello, world"
end
$a_global_proc = proc { str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# h......ello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>... -
Profiler
_ _ . # print _ profile(file) -> () (9206.0) -
stop_profile を実行し、プロファイルの結果を file に出力します。 file には printf メソッドが定義されていなければいけません。
...stop_profile を実行し、プロファイルの結果を file に出力します。
file には printf メソッドが定義されていなければいけません。
@param file File のインスタンスを指定します。... -
DateTime
# new _ offset(offset = 0) -> DateTime (6306.0) -
self を複製して、その時差を設定しなおします。 引数を省略した場合は、零 (協定世界時) になります。
...self を複製して、その時差を設定しなおします。
引数を省略した場合は、零 (協定世界時) になります。
DateTime.new も参照してください。
@param offset 時差... -
MiniTest
:: Assertions # assert _ kind _ of(klass , object , message) -> true (6243.0) -
与えられたオブジェクトが与えられたクラスまたはそのサブクラスのインスタンス である場合、検査にパスしたことになります。
...ス
である場合、検査にパスしたことになります。
@param klass オブジェクトが所属することを期待するクラスを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセ......結果を使用します。
@raise MiniTest::Assertion 与えられたオブジェクトが与えられたクラスまたはそのサブクラスの
インスタンスではない場合に発生します。
@see Object#kind_of?, MiniTest::Assertions#assert_instance_of... -
Object
# instance _ of?(klass) -> bool (6243.0) -
オブジェクトがクラス klass の直接のインスタンスである時真を返します。
..._of?(c) が成立する時には、常に obj.kind_of?(c) も成立します。
@param klass Classかそのサブクラスのインスタンスです。
//emlist[][ruby]{
class C < Object
end
class S < C
end
obj = S.new
p obj.instance_of?(S) # true
p obj.instance_of?(C) # false
//}
@......see Object#kind_of?,Object#class... -
MiniTest
:: Assertions # assert _ instance _ of(klass , object , message = nil) -> true (6237.0) -
与えられたオブジェクトが与えられたクラスの直接のインスタンスである場合、検査にパスしたことになります。
...る場合、検査にパスしたことになります。
@param klass オブジェクトが直接のインタンスであることを期待するクラスを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示する......Proc#call した
結果を使用します。
@raise MiniTest::Assertion 与えられたオブジェクトが与えられたクラスの直接のインスタンスでない
場合に発生します。
@see Module#===, MiniTest::Assertions#assert_kind_of... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (6237.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...れていない、
もしくはデフォルト値が宣言されていない、のいずれかの場合は nil を返します。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOC......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
//}... -
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (6236.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...tor[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
Encoding
:: UTF8 _ SOFTBANK -> Encoding (6228.0) -
UTF8-SoftBank エンコーディングです。
...UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html... -
Encoding
:: UTF8 _ SoftBank -> Encoding (6228.0) -
UTF8-SoftBank エンコーディングです。
...UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html... -
IRB
:: Context # ignore _ eof -> bool (6228.0) -
Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
...Ctrl-D(EOF) が入力された時に irb を終了するかどうかを返します。
true の時は Ctrl-D を無視します。false の時は irb を終了します。
デフォルト値は false です。
@see IRB::Context#ignore_eof=...