2705件ヒット
[1-100件を表示]
(0.119秒)
別のキーワード
ライブラリ
- ビルトイン (1781)
- csv (120)
- date (12)
- logger (12)
- openssl (36)
- pathname (12)
- psych (24)
- rake (120)
-
rake
/ loaders / makefile (12) -
rexml
/ document (516) -
rexml
/ streamlistener (12) -
rubygems
/ requirement (12) -
rubygems
/ version (12) - strscan (24)
クラス
- Array (233)
- BasicObject (36)
- CSV (72)
-
CSV
:: Row (36) -
CSV
:: Table (12) - Class (24)
- Complex (6)
- Date (12)
-
Encoding
:: Converter (24) -
Enumerator
:: Lazy (84) -
Enumerator
:: Yielder (12) - Exception (24)
-
File
:: Stat (12) - Float (48)
-
Gem
:: Requirement (12) -
Gem
:: Version (12) - Hash (113)
- Integer (84)
- Logger (12)
- Method (42)
- Module (132)
- Numeric (72)
- Object (96)
-
OpenSSL
:: BN (36) - Pathname (12)
- Proc (55)
-
Psych
:: Visitors :: YAMLTree (24) -
REXML
:: Attributes (144) -
REXML
:: CData (24) -
REXML
:: Document (36) -
REXML
:: Element (180) -
REXML
:: Elements (108) -
REXML
:: Instruction (24) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (24) - Range (147)
- Rational (12)
-
RubyVM
:: InstructionSequence (82) - String (148)
- StringScanner (24)
- Symbol (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - Time (12)
- TracePoint (7)
モジュール
- Comparable (24)
- Enumerable (204)
- FileUtils (12)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (84)
キーワード
- != (12)
- % (12)
- << (158)
- <= (58)
- <=> (186)
- == (12)
- === (24)
- [] (60)
- []= (24)
-
absolute
_ path (12) - add (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ row (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (36) -
base
_ label (24) -
bit
_ length (12) - bsearch (48)
-
bsearch
_ index (20) - call (12)
-
chunk
_ while (12) -
class
_ variables (12) - clear (12)
- cmp (12)
- concat (45)
-
const
_ source _ location (12) - content (12)
- convert (36)
- cover? (19)
-
define
_ task (12) - delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ if (12) - disasm (12)
- disassemble (12)
- div (12)
- divmod (24)
- downto (24)
-
drop
_ while (60) - each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- entitydecl (12)
-
enum
_ for (48) - filter (14)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - inherited (12)
- initialize (12)
-
insert
_ output (12) - inspect (12)
-
instance
_ eval (12) -
instance
_ methods (12) -
instruction
_ sequence (7) - intern (12)
- label (12)
- lazy (12)
- length (12)
- load (12)
- lookup (12)
- max (130)
-
method
_ defined? (12) - methods (12)
- min (130)
- minmax (12)
- modulo (12)
- namespaces (12)
-
next
_ element (12) - pack (21)
- path (12)
- prefixes (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - push (12)
- puts (12)
- reject (24)
- reject! (24)
- remainder (12)
- replacement= (12)
- root (12)
-
root
_ node (12) - ruby (12)
- scrub (36)
- scrub! (36)
- select (19)
-
set
_ backtrace (12) - size (24)
-
slice
_ when (12) - sort (24)
- split (19)
-
stand
_ alone? (12) -
super
_ method (11) - superclass (12)
-
synthesize
_ file _ task (12) -
take
_ while (72) - target (12)
- tasks (24)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ ary (12) -
to
_ binary (10) -
to
_ csv (12) -
to
_ enum (48) -
to
_ s (36) - unpack (12)
- value (12)
- version (12)
- xpath (12)
- yield (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (32119.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...て返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッ......ry で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extr......合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\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\x0... -
RubyVM
:: InstructionSequence # disasm -> String (29113.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 (29113.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 (29107.0) -
self が表す命令シーケンスの絶対パスを返します。
...irb で実行した場合
iseq = 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, wor......ld"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (29107.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/method.rb
def hello......lo, world"
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::Instructio... -
RubyVM
:: InstructionSequence # label -> String (29107.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 (29107.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... -
Comparable
# <(other) -> bool (21219.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Integer
# <(other) -> bool (21219.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}...