1445件ヒット
[1-100件を表示]
(0.178秒)
ライブラリ
- ビルトイン (1445)
クラス
-
ARGF
. class (60) - Array (155)
- Data (15)
- Encoding (48)
-
Encoding
:: Converter (60) - Enumerator (24)
-
Enumerator
:: Lazy (12) - IO (136)
- Integer (48)
- MatchData (61)
- Method (12)
- Module (48)
- Numeric (12)
- Object (60)
- Proc (30)
-
RubyVM
:: InstructionSequence (48) - String (30)
- Struct (22)
- Symbol (12)
- SystemCallError (12)
- Thread (24)
- Time (75)
モジュール
-
File
:: Constants (12) -
GC
:: Profiler (96) - Kernel (85)
- ObjectSpace (48)
- Process (36)
-
RubyVM
:: AbstractSyntaxTree (10)
キーワード
- === (36)
- ArgumentError (12)
- Bignum (9)
-
CLOCK
_ PROF (12) - ConditionVariable (10)
- EDOOFUS (12)
- EOFError (12)
- EROFS (12)
- Fixnum (9)
- Float (12)
- Mutex (10)
- NOFOLLOW (12)
- Proc (12)
- Profiler (12)
- Queue (10)
-
RLIMIT
_ NOFILE (12) - RegexpError (12)
-
SJIS
_ SOFTBANK (12) -
SJIS
_ SoftBank (12) - SizedQueue (10)
-
UTF8
_ SOFTBANK (12) -
UTF8
_ SoftBank (12) - [] (22)
- advise (12)
- autoload (24)
- autoload? (12)
-
base
_ label (12) - begin (12)
- binread (12)
- binwrite (12)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- chr (24)
- class (12)
- clear (12)
- coerce (12)
- combination (24)
-
const
_ set (12) -
copy
_ stream (12) - curry (24)
-
deconstruct
_ keys (15) - digits (24)
- disable (12)
-
each
_ object (48) - enable (12)
- enabled? (12)
- end (12)
-
end
_ with? (6) - eof (24)
- eof? (24)
- exec (12)
- fetch (36)
-
fetch
_ values (2) -
first
_ lineno (12) - getlocal (12)
- gets (12)
-
gmt
_ offset (12) - gmtoff (12)
-
handle
_ interrupt (12) -
instance
_ of? (12) -
is
_ a? (12) -
kind
_ of? (12) - label (12)
- lambda (18)
- localtime (12)
- new (18)
- offset (24)
- pack (21)
- permutation (24)
- pread (8)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - proc (19)
- pwrite (8)
-
raw
_ data (12) - read (12)
- readbyte (12)
- readchar (12)
- readline (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - report (12)
- result (12)
-
ruby2
_ keywords (18) - seek (24)
-
source
_ location (12) -
start
_ with? (6) - strftime (12)
- sysseek (12)
-
to
_ f (12) -
total
_ time (12) - unpack (12)
-
utc
_ offset (12) -
with
_ index (36) - write (12)
検索結果
先頭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 (26137.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 (26114.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 (26114.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 (26113.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 (14131.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 (14100.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 (14100.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 (14100.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 (14100.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 (14100.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 (14100.0) -
UTF8-SoftBank エンコーディングです。
...UTF8-SoftBank エンコーディングです。
UTF-8 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。
@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html...
