種類
ライブラリ
- English (88)
- ビルトイン (529)
- benchmark (11)
- csv (22)
-
fiddle
/ import (11) -
irb
/ input-method (55) - json (33)
- logger (1)
- objspace (11)
- observer (11)
- openssl (11)
- psych (11)
- rake (22)
-
rake
/ packagetask (11) - rbconfig (11)
-
rubygems
/ dependency _ list (11) - socket (22)
- stringio (11)
- strscan (22)
- time (55)
- win32ole (22)
- zlib (44)
クラス
-
ARGF
. class (22) - Array (52)
- CSV (11)
- Data (10)
-
Encoding
:: Converter (44) -
Gem
:: DependencyList (11) - IO (36)
-
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (22) -
JSON
:: State (11) - MatchData (48)
- Method (11)
- Module (38)
- Numeric (11)
- Object (55)
- Proc (5)
-
Rake
:: FileList (22) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (44) - Socket (11)
- String (11)
- StringIO (11)
- StringScanner (22)
- Struct (12)
- Symbol (10)
- SystemCallError (11)
- Thread (22)
- Time (55)
-
WIN32OLE
_ PARAM (11) -
Zlib
:: GzipReader (44)
モジュール
- Benchmark (11)
-
Fiddle
:: Importer (11) - JSON (22)
- Kernel (167)
- ObjectSpace (11)
- RbConfig (11)
-
RubyVM
:: AbstractSyntaxTree (8) -
Socket
:: Constants (11)
キーワード
-
$ ARGV (11) -
$ DEFAULT _ INPUT (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ NR (11) -
$ ORS (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (33)
- Application (1)
- CSV (11)
-
MAKEFILE
_ CONFIG (11) -
MSG
_ COMPAT (22) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
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) - OCSP (11)
- Observable (11)
- Proc (11)
- Ruby用語集 (11)
-
WIN32OLE
_ TYPELIB (11) - [] (18)
- autoload (22)
- autoload? (11)
-
base
_ label (11) - begin (11)
- benchmark (11)
- bigdecimal (11)
- byteoffset (4)
-
check
_ circular? (11) - coerce (11)
-
const
_ set (11) -
deconstruct
_ keys (2) -
end
_ with? (5) - eof (11)
- eof? (33)
- fetch (33)
-
first
_ lineno (11) - generate (11)
- gets (11)
-
handle
_ interrupt (11) - httpdate (11)
-
instance
_ of? (11) -
is
_ a? (22) - iso8601 (11)
-
kind
_ of? (22) - label (11)
- lambda (17)
-
memsize
_ of _ all (11) -
net
/ imap (11) -
net
/ smtp (11) - new (35)
- offset (22)
- output? (11)
- pack (19)
- pack テンプレート文字列 (11)
- pointer= (11)
- pos= (11)
- pread (7)
-
primitive
_ convert (44) - proc (18)
- pwrite (7)
- rdoc (11)
-
readable
_ atfer _ eof? (33) - readbyte (11)
- readchar (22)
- readline (22)
- rfc2822 (11)
- rfc822 (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (10) - seek (22)
- sizeof (11)
-
source
_ location (11) -
spec
_ predecessors (11) -
start
_ with? (5) - sysseek (11)
-
test
/ unit (1) - unpack (11)
- unparse (11)
- xmlschema (11)
-
yaml
_ tag (11) - クラス/メソッドの定義 (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 - RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - MatchData
# end(n) -> Integer | nil
-
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18280.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ntaxTree.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
#......(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 "hell... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (18280.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ntaxTree.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
#......(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 "hell... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (18279.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ntaxTree.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
#......(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 "hell... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (18249.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: Ruby......o, world"
end
$a_global_proc = proc { str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_glob... -
MatchData
# end(n) -> Integer | nil (18243.0) -
n 番目の部分文字列終端のオフセットを返します。
...IndexError 範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.end(0) # => 6
p $~.end(1) # => 3
p $~.end(2) # => 6
p $~.end(3) # => nil
p $~.end(4) # => `end': index 4 out of matches (IndexError)
//}
@see MatchData#begin... -
Object
# instance _ of?(klass) -> bool (6243.0) -
オブジェクトがクラス klass の直接のインスタンスである時真を返します。
...obj.instance_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... -
Symbol
# end _ with?(*suffixes) -> bool (6237.0) -
self の末尾が suffixes のいずれかであるとき true を返します。
...。
(self.to_s.end_with?と同じです。)
@param suffixes パターンを表す文字列 (のリスト)
@see Symbol#start_with?
@see String#end_with?
//emlist[][ruby]{
:hello.end_with?("ello") #=> true
# returns true if one of the +suffixes+ matches.
:hello.end_with?("heaven",......"ello") #=> true
:hello.end_with?("heaven", "paradise") #=> false
//}... -
IRB
:: InputMethod # readable _ atfer _ eof? -> false (6232.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
IRB
:: ReadlineInputMethod # eof? -> bool (6232.0) -
入力が EOF(End Of File)に達したかどうかを返します。
...入力が EOF(End Of File)に達したかどうかを返します。... -
IRB
:: ReadlineInputMethod # readable _ atfer _ eof? -> false (6232.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
IRB
:: StdioInputMethod # eof? -> bool (6232.0) -
入力が EOF(End Of File)に達したかどうかを返します。
...入力が EOF(End Of File)に達したかどうかを返します。... -
IRB
:: StdioInputMethod # readable _ atfer _ eof? -> true (6232.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。...