種類
- インスタンスメソッド (3)
- モジュール関数 (2)
- 関数 (2)
- 特異メソッド (2)
- 定数 (2)
クラス
モジュール
-
Gem
:: QuickLoader (1) - JSON (2)
-
Socket
:: Constants (1)
キーワード
- GemVersions (1)
-
IFF
_ SLAVE (1) - each (1)
-
load
_ from _ binary (1) -
load
_ from _ binary _ extra _ data (1) -
load
_ private _ key (1) -
rb
_ autoload (1) -
rb
_ autoload _ id (1) - restore (1)
-
to
_ binary (1)
検索結果
先頭5件
- JSON
. # load(source , proc = nil , options = {}) -> object - RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence - OpenSSL
:: Engine # load _ private _ key(id=nil , data=nil) -> OpenSSL :: PKey :: PKey - RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String - Gem
:: QuickLoader :: GemVersions -> Hash
-
JSON
. # load(source , proc = nil , options = {}) -> object (73048.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a"... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (64522.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起こします。
他者により提供されたバイナリデータはロードすべきではありません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM:... -
OpenSSL
:: Engine # load _ private _ key(id=nil , data=nil) -> OpenSSL :: PKey :: PKey (64204.0) -
秘密鍵を engine にロードします。
秘密鍵を engine にロードします。
@param id key id(文字列)
@param data 文字列 -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (63622.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary -
Gem
:: QuickLoader :: GemVersions -> Hash (54601.0) -
prelude.c で定義されている内部用の定数です。
prelude.c で定義されている内部用の定数です。 -
Socket
:: Constants :: IFF _ SLAVE (45649.0) -
slave of a load balancer
slave of a load balancer -
void rb
_ autoload(const char *klass , const char *filename) (37501.0) -
この関数は 2.3.0 以降で deprecated です。rb_funcall を使用してください。
この関数は 2.3.0 以降で deprecated です。rb_funcall を使用してください。 -
static void rb
_ autoload _ id(ID id , const char *filename) (37201.0) -
-
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (27403.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。
注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他... -
JSON
. # restore(source , proc = nil , options = {}) -> object (18748.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a"... -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (18619.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
オブジェクトに含まれる全ての設定情報を順にブロックに渡し
呼び出します。
渡される値は、セクションを表す文字列、キーを表す文字列、キーに
割り当てられた値の文字列、の3つです。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name...