2456件ヒット
[1-100件を表示]
(0.091秒)
別のキーワード
ライブラリ
- ビルトイン (1817)
- csv (96)
- date (24)
- logger (12)
- openssl (36)
- pathname (12)
- rake (72)
-
rexml
/ document (300) -
rexml
/ streamlistener (12) -
rubygems
/ requirement (12) -
rubygems
/ version (12) - set (27)
- strscan (24)
クラス
- Array (233)
- BasicObject (60)
- CSV (72)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (20)
- Complex (6)
- Date (24)
-
Encoding
:: Converter (24) -
Enumerator
:: Lazy (36) - Exception (24)
-
File
:: Stat (12) - Float (36)
-
Gem
:: Requirement (12) -
Gem
:: Version (12) - Hash (144)
- Integer (84)
- Logger (12)
- Method (42)
- Module (168)
- Numeric (72)
- Object (132)
-
OpenSSL
:: BN (36) - Pathname (12)
- Proc (55)
-
REXML
:: Attributes (60) -
REXML
:: CData (24) -
REXML
:: Element (120) -
REXML
:: Elements (96) -
Rake
:: NameSpace (12) - Range (135)
- Rational (12)
-
RubyVM
:: InstructionSequence (82) - Set (36)
- String (148)
- StringScanner (24)
- Symbol (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - Time (12)
- TracePoint (7)
- UnboundMethod (12)
モジュール
- Comparable (24)
- Enumerable (180)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (60)
キーワード
- ! (12)
- != (12)
- % (12)
- << (158)
- <= (58)
- <=> (174)
- == (12)
- === (24)
- [] (60)
- []= (12)
-
absolute
_ path (12) - add (24)
- add? (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ row (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (36) -
base
_ label (24) - bind (12)
-
bit
_ length (12) - bsearch (48)
-
bsearch
_ index (20) - call (12)
-
chunk
_ while (12) -
class
_ variables (12) - cmp (12)
- concat (45)
-
const
_ source _ location (12) - convert (36)
- cover? (19)
-
define
_ task (12) - delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ if (24) - disasm (12)
- disassemble (12)
- div (12)
- divmod (24)
- downto (24)
-
drop
_ while (36) - each (12)
-
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - entitydecl (12)
-
enum
_ for (24) - filter (14)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - include (12)
- include? (12)
- inherited (12)
- initialize (12)
-
insert
_ output (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instruction
_ sequence (7) - intern (12)
-
is
_ a? (12) -
kind
_ of? (12) - label (12)
- lazy (12)
- lookup (12)
- max (130)
-
method
_ defined? (12) - methods (12)
- min (130)
- modulo (12)
- pack (21)
- path (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - puts (12)
- reject (24)
- reject! (24)
- remainder (12)
- replacement= (12)
- scrub (36)
- scrub! (36)
- select (24)
-
set
_ backtrace (12) -
slice
_ when (12) - sort (24)
- split (19)
- subclasses (4)
-
super
_ method (11) - superclass (4)
-
synthesize
_ file _ task (12) -
take
_ while (72) - text (12)
-
to
_ a (24) -
to
_ ary (12) -
to
_ binary (10) -
to
_ enum (24) -
to
_ h (14) -
to
_ s (24) -
undef
_ method (12) - unpack (12)
- value (12)
- yield (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (26149.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...タを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_e......は他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")
# ※表示の都合上......\x00\x00\x00\x16\x02\x00\x00\n\x00\x00\x00\x01
# \x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\x84\x01\x00\x00\x88\x01\x00
# \x00\x02\x02\x00\x00x86_64-darwin15\x00*\x00\x00\x00\x00\x00\x00\x00\x01
# \x00\x00\x00\x00\x00\x00\x00\\\x00\x00\x00\x00\x00\x00\x00\x0F\x00\x00\x00
# \x00\x00\x00\x00\x02\x00... -
RubyVM
:: InstructionSequence # disasm -> String (26119.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:......1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # disassemble -> String (26119.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:......1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (26113.0) -
self が表す命令シーケンスの絶対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (26113.0) -
self が表す命令シーケンスの基本ラベルを返します。
...ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/me......end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#l... -
RubyVM
:: InstructionSequence # label -> String (26113.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...では "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled......>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello,......world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label... -
RubyVM
:: InstructionSequence # path -> String (26113.0) -
self が表す命令シーケンスの相対パスを返します。
...から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file......を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
Module
# <(other) -> bool | nil (18261.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...す。
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar < Foo # => true
p Baz < Bar #......=> true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Qux # => nil
p Foo < Object.new # => in `<': compared with non class/module (TypeError)
//}... -
Hash
# <(other) -> bool (18243.0) -
self が other のサブセットである場合に真を返します。
...サブセットである場合に真を返します。
@param other 自身と比較したい Hash オブジェクトを指定します。
//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 < h2 # => true
h2 < h1 # => false
h1 < h1 # => false
//}
@see Hash#<=, Hash#>=, Hash#>...