クラス
-
ARGF
. class (55) - Array (140)
- Data (10)
- Encoding (44)
-
Encoding
:: Converter (55) - Enumerator (22)
-
Enumerator
:: Lazy (10) - IO (124)
- Integer (44)
- MatchData (48)
- Method (11)
- Module (38)
- Numeric (11)
- Object (55)
- Proc (27)
-
RubyVM
:: InstructionSequence (44) - String (26)
- Struct (12)
- Symbol (10)
- SystemCallError (11)
- Thread (22)
- Time (66)
モジュール
-
File
:: Constants (11) -
GC
:: Profiler (88) - Kernel (79)
- ObjectSpace (44)
- Process (33)
-
RubyVM
:: AbstractSyntaxTree (8)
キーワード
- === (33)
- ArgumentError (11)
- Bignum (9)
-
CLOCK
_ PROF (11) - ConditionVariable (9)
- EDOOFUS (11)
- EOFError (11)
- EROFS (11)
- Fixnum (9)
- Float (11)
- Mutex (9)
- NOFOLLOW (11)
- Proc (11)
- Profiler (11)
- Queue (9)
-
RLIMIT
_ NOFILE (11) - RegexpError (11)
-
SJIS
_ SOFTBANK (11) -
SJIS
_ SoftBank (11) - SizedQueue (9)
-
UTF8
_ SOFTBANK (11) -
UTF8
_ SoftBank (11) - [] (18)
- advise (11)
- autoload (22)
- autoload? (11)
-
base
_ label (11) - begin (11)
- binread (11)
- binwrite (11)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
- chr (22)
- class (11)
- clear (11)
- coerce (11)
- combination (22)
-
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 (22)
- eof? (22)
- exec (11)
- fetch (33)
-
first
_ lineno (11) - getlocal (11)
- gets (11)
-
gmt
_ offset (11) - gmtoff (11)
-
handle
_ interrupt (11) -
instance
_ of? (11) -
is
_ a? (11) -
kind
_ of? (11) - label (11)
- lambda (17)
- localtime (11)
- new (13)
- offset (22)
- pack (19)
- permutation (22)
- pread (7)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - proc (18)
- pwrite (7)
-
raw
_ data (11) - read (11)
- readbyte (11)
- readchar (11)
- readline (11)
-
repeated
_ combination (22) -
repeated
_ permutation (22) - report (11)
- result (11)
-
ruby2
_ keywords (10) - seek (22)
-
source
_ location (11) -
start
_ with? (5) - strftime (11)
- sysseek (11)
-
to
_ f (11) -
total
_ time (11) - unpack (11)
-
utc
_ offset (11) -
with
_ index (32) - write (11)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - 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 - Object
# instance _ of?(klass) -> bool
-
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (26139.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......str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSeq... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (26116.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... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (26116.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... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (26115.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... -
Object
# instance _ of?(klass) -> bool (14133.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... -
ARGF
. class # eof -> bool (14102.0) -
現在開いているファイルがEOFに達したらtrueを返します。そうでない場合は falseを返します。
...イルがEOFに達したらtrueを返します。そうでない場合は
falseを返します。
@raise IOError ファイルがopenされていない場合に発生します。
$ echo "eof" | ruby argf.rb
ARGF.eof? # => false
3.times { ARGF.readchar }
ARGF.eof?......# => false
ARGF.readchar # => "\n"
ARGF.eof? # => true
@see IO#eof, IO#eof?... -
ARGF
. class # eof? -> bool (14102.0) -
現在開いているファイルがEOFに達したらtrueを返します。そうでない場合は falseを返します。
...イルがEOFに達したらtrueを返します。そうでない場合は
falseを返します。
@raise IOError ファイルがopenされていない場合に発生します。
$ echo "eof" | ruby argf.rb
ARGF.eof? # => false
3.times { ARGF.readchar }
ARGF.eof?......# => false
ARGF.readchar # => "\n"
ARGF.eof? # => true
@see IO#eof, IO#eof?... -
Encoding
:: SJIS _ SOFTBANK -> Encoding (14102.0) -
SJIS-SoftBank エンコーディングです。
...SJIS-SoftBank エンコーディングです。
Shift_JIS, CP932 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html... -
Encoding
:: SJIS _ SoftBank -> Encoding (14102.0) -
SJIS-SoftBank エンコーディングです。
...SJIS-SoftBank エンコーディングです。
Shift_JIS, CP932 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html... -
Encoding
:: UTF8 _ SOFTBANK -> Encoding (14102.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 (14102.0) -
UTF8-SoftBank エンコーディングです。
...UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html... -
File
:: Constants :: NOFOLLOW -> Integer (14102.0) -
ファイルがシンボリックリンクであった場合に 例外を発生させます。 open(2) で O_NOFOLLOW が指定できる場合に使えます。 File.openで使用します。
...ファイルがシンボリックリンクであった場合に
例外を発生させます。
open(2) で O_NOFOLLOW が指定できる場合に使えます。
File.openで使用します。...