4203件ヒット
[1-100件を表示]
(0.122秒)
別のキーワード
ライブラリ
- ビルトイン (2215)
-
bigdecimal
/ util (12) -
cgi
/ core (12) - csv (114)
- date (4)
- etc (12)
- fiddle (12)
-
fiddle
/ import (24) -
irb
/ context (36) - json (168)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (120)
- mkmf (12)
- monitor (24)
-
net
/ http (300) - optparse (564)
- pathname (24)
- prime (36)
- rake (24)
-
rexml
/ streamlistener (12) -
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ installer (12) -
rubygems
/ requirement (48) -
rubygems
/ specification (36) -
rubygems
/ version (48) - set (36)
- socket (36)
- strscan (12)
- thread (16)
- timeout (8)
- tsort (58)
- win32ole (24)
クラス
- Addrinfo (24)
- Array (196)
- BasicObject (36)
- BigDecimal (12)
- CGI (12)
- CSV (84)
-
CSV
:: Row (6) - Complex (48)
- Data (6)
- Date (14)
- DateTime (14)
-
Encoding
:: Converter (180) -
Encoding
:: InvalidByteSequenceError (12) -
Enumerator
:: Lazy (24) - Exception (92)
- Fiber (6)
-
Fiddle
:: Function (12) - File (12)
- Float (24)
-
Gem
:: Installer (12) -
Gem
:: Requirement (48) -
Gem
:: Specification (36) -
Gem
:: Version (48) - Hash (24)
- IO (180)
-
IRB
:: Context (36) - Integer (36)
-
JSON
:: Parser (12) -
JSON
:: State (36) - MatchData (4)
- Matrix (108)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (168)
- Monitor (24)
- Mutex (2)
-
Net
:: HTTP (216) -
Net
:: HTTPResponse (36) - NilClass (24)
- Numeric (48)
- Object (120)
- OptionParser (504)
- Pathname (24)
- Prime (24)
- Proc (12)
-
Rake
:: InvocationChain (24) - Range (12)
- Rational (315)
- Regexp (12)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (94) - Set (48)
- Socket (12)
- String (204)
- StringScanner (12)
- Struct (36)
- Thread (45)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (26)
- TracePoint (19)
- UnboundMethod (12)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (144)
-
Fiddle
:: Importer (24) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (44)
-
Net
:: HTTPHeader (48) -
OptionParser
:: Arguable (60) -
REXML
:: StreamListener (12) - TSort (58)
キーワード
- * (12)
- ** (12)
- + (12)
- -@ (9)
-
/ (12) - <=> (24)
- == (24)
- === (24)
- =~ (12)
- JSON (12)
-
abort
_ on _ exception (12) -
absolute
_ path (24) - accept (12)
-
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ runtime _ dependency (12) -
allow
_ nan? (12) - append (12)
-
arg
_ config (12) - autoload (12)
- autoload? (12)
- backtrace (12)
-
backtrace
_ locations (36) -
base
_ label (24) - bind (12)
- binread (12)
- broadcast (12)
- byteindex (3)
- call (12)
- capitalize (9)
- capitalize! (9)
- ceil (12)
- cleanpath (12)
- clone (48)
- coerce (12)
-
cofactor
_ expansion (12) -
collect
_ concat (12) - combination (24)
- component (12)
- concat (66)
- configure (12)
- conj (12)
- conjugate (12)
- connect (12)
-
connect
_ from (24) -
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ type= (12) - convert (48)
- converters (12)
- convpath (12)
- deconstruct (14)
-
deconstruct
_ keys (20) -
default
_ argv (12) -
default
_ event _ sources (12) -
define
_ singleton _ method (24) - denominator (12)
-
deprecate
_ constant (12) - deq (24)
-
destination
_ encoding (12) - detect (24)
- disasm (12)
- disassemble (12)
- downcase (9)
- downcase! (9)
- dup (48)
- each (72)
-
each
_ cons (24) -
each
_ line (72) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eigen (12)
- eigensystem (12)
- encode (36)
- encode! (24)
- entitydecl (12)
- environment (12)
-
error
_ bytes (12) - exception (24)
- exit (12)
- fdiv (12)
- fetch (12)
-
field
_ size _ limit (12) - find (24)
- finish (12)
-
flat
_ map (12) - flock (12)
- floor (12)
- gem (12)
- get (24)
- get2 (24)
- getopts (36)
- handler= (12)
- head (12)
- head2 (24)
- header (12)
-
header
_ converters (12) -
insert
_ output (12) - inspect (36)
- install (12)
-
instruction
_ sequence (7) -
int
_ from _ prime _ division (12) - intersection (18)
- label (24)
-
laplace
_ expansion (12) - load (12)
- lup (12)
-
lup
_ decomposition (12) -
marshal
_ load (12) - member? (12)
- merge (12)
-
module
_ function (36) -
mon
_ exit (6) - negative? (9)
- none? (45)
- nonzero? (12)
- numerator (12)
-
on
_ head (12) -
on
_ tail (12) - one? (45)
- order (48)
- order! (48)
- parse (48)
- parse! (24)
-
parse
_ csv (12) - partition (12)
- path (24)
- pathconf (12)
- permutation (24)
- permute (24)
- permute! (24)
- pop (24)
- positive? (9)
- post (24)
- post2 (24)
- prerelease? (12)
-
prime
_ division (24) -
primitive
_ convert (48) -
primitive
_ errinfo (12) -
private
_ constant (12) -
program
_ name (12) -
prompt
_ mode (12) -
public
_ constant (12) - putback (24)
- quo (24)
- raise (6)
-
raised
_ exception (12) - rationalize (108)
-
read
_ body (24) - reject (12)
- release (12)
-
remove
_ const (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - replacement (12)
- replacement= (12)
-
report
_ on _ exception (9) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - round (12)
- rpartition (12)
-
satisfied
_ by? (12) -
send
_ request (12) - separator (12)
-
set
_ backtrace (12) -
set
_ content _ type (12) - shift (24)
- signal (12)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
slice
_ before (24) - solve (12)
-
source
_ encoding (12) -
source
_ location (36) - strftime (12)
-
strongly
_ connected _ components (12) - summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - swapcase (9)
- swapcase! (9)
- synchronize (12)
- timeout (8)
-
to
_ a (6) -
to
_ binary (10) -
to
_ csv (12) -
to
_ d (12) -
to
_ f (12) -
to
_ i (12) -
to
_ json (228) -
to
_ r (36) -
to
_ s (24) - tr (12)
- trace (12)
- truncate (12)
-
unconverted
_ fields? (12) - union (31)
- upcase (9)
- upcase! (9)
-
use
_ readline (12) -
use
_ readline? (12) - value (12)
- values (6)
-
wait
_ for _ cond (6)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (29143.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_d......マシンに移動できません。他のバージョンや他のアーキテクチャの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 # inspect -> String (29119.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (29107.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 (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.r......# 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#label... -
RubyVM
:: InstructionSequence # disasm -> String (29107.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...シーケンスを人間が読める形式の文字列に変換して返します。
puts 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 (29107.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...シーケンスを人間が読める形式の文字列に変換して返します。
puts 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 # label -> String (29107.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
... 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 = Ruby......VM::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 が表す命令シーケンスの相対パスを返します。
...= 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 = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
OptionParser
# on(long , desc = "") {|v| . . . } -> self (21457.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}
複数の異なるオプションに同じブロックを一度に登録することもできます。
opt.on('-v', '-vv'){|boolean|.........}
opt.on('--require X', '--need', '--dependon'){|x| ... }
@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x"){|boolean| ...}
//}
となります。コマンド......st{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"){|val| ...} # スペース無しで任意の文字列を入れても同様
//}
オプションの引数が必須でない場合は [ ] をつけて、
//emlist{
on("-x [...