2139件ヒット
[1-100件を表示]
(0.060秒)
別のキーワード
ライブラリ
- ビルトイン (915)
-
cgi
/ core (12) - csv (48)
- json (240)
-
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) - mkmf (12)
-
net
/ http (108) - open-uri (24)
- optparse (456)
- pathname (12)
- rake (60)
-
rexml
/ document (48) -
rubygems
/ specification (24) -
rubygems
/ version (24) - socket (24)
- strscan (12)
クラス
- Addrinfo (12)
- Array (36)
- BigDecimal (12)
- Binding (7)
- CGI (12)
-
CSV
:: Table (24) - Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) - Exception (80)
-
Gem
:: Specification (24) -
Gem
:: Version (24) -
JSON
:: Parser (12) -
JSON
:: State (108) - MatchData (2)
- Method (12)
- Module (156)
-
Net
:: HTTPResponse (96) - Object (84)
- OptionParser (408)
- Pathname (12)
- Proc (12)
-
REXML
:: Document (24) -
REXML
:: Instruction (24) -
Rake
:: Application (36) -
Rake
:: InvocationChain (12) - Range (12)
- Rational (36)
- Regexp (12)
-
RubyVM
:: InstructionSequence (94) - SignalException (12)
- Socket (12)
- String (204)
- StringScanner (12)
- Struct (12)
-
Thread
:: Backtrace :: Location (72) - Time (36)
- UnboundMethod (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 (12)
-
Net
:: HTTPHeader (12) -
OpenURI
:: Meta (24) -
OptionParser
:: Arguable (48) -
Rake
:: TaskManager (12)
キーワード
- === (12)
-
absolute
_ path (24) -
arg
_ config (12) -
array
_ nl (12) - autoload (12)
- autoload? (12)
- backtrace (12)
-
base
_ label (24) - binread (12)
- body (12)
- byteindex (3)
- canonname (12)
- capitalize (9)
- capitalize! (9)
- clone (36)
- code (12)
- concat (33)
- connect (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - content (12)
-
content
_ encoding (12) -
content
_ type (24) - convert (12)
- deconstruct (2)
-
default
_ argv (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - disasm (12)
- disassemble (12)
- downcase (9)
- downcase! (9)
- dup (24)
- encode (36)
- encode! (24)
- entity (12)
- environment (12)
-
error
_ bytes (12) -
error
_ char (12) - finish (12)
- header (12)
- help (12)
-
http
_ version (12) - indent (12)
- indent= (12)
-
insert
_ output (12) - inspect (48)
-
json
_ creatable? (12) - label (24)
-
last
_ description (12) -
module
_ function (36) - msg (12)
- name (12)
-
object
_ nl (12) -
object
_ nl= (12) - order (48)
- order! (48)
-
original
_ dir (12) - parse (24)
- parse! (24)
-
parse
_ csv (12) - partition (12)
- path (24)
- permute (24)
- permute! (24)
-
private
_ constant (12) -
program
_ name (12) -
public
_ constant (12) - putback (24)
- rakefile (12)
-
read
_ body (24) - release (12)
-
remove
_ const (12) - replacement (12)
- replacement= (12)
- rpartition (12)
-
rubygems
_ version (12) -
set
_ backtrace (12) - signm (12)
-
singleton
_ class (12) -
singleton
_ method (12) - source (12)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
stand
_ alone? (12) - strftime (12)
-
summary
_ indent (12) - swapcase (9)
- swapcase! (9)
- target (12)
-
to
_ a (12) -
to
_ binary (10) -
to
_ csv (24) -
to
_ json (228) -
to
_ r (12) -
to
_ ruby (12) -
to
_ s (84) - upcase (9)
- upcase! (9)
- ver (12)
- version (24)
- zone (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (26114.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")
# ※表示の都合上改行し......0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}
@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data... -
RubyVM
:: InstructionSequence # inspect -> String (26108.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 # disasm -> String (26103.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 (26103.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 # absolute _ path -> String | nil (26102.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 (26102.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 # label -> String (26102.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 (26102.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 , klass = String , desc = "") {|v| . . . } -> self (21370.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...なクラスを受け付けるかは、
以下の「デフォルトで利用可能な引数クラス」を参照して下さい。
OptionParser.accept や OptionParser#accept によって、受け付け
るクラスを増やすことができます。登録されていないクラスが指定され......外
OptionParser::InvalidArgument を投げます。
オプションの引数は accept で登録したブロックで klass のインスタンス
に変換されてから、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command -......-width=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指定します。
@param long ロングオプションを表す文字列を指定します。
@param klass オプションの引...