343件ヒット
[201-300件を表示]
(0.052秒)
ライブラリ
- json (48)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - openssl (60)
-
rubygems
/ version (12) - tempfile (55)
-
win32
/ registry (24)
クラス
- BigDecimal (12)
- Complex (12)
- Date (12)
- DateTime (12)
- Exception (12)
-
Gem
:: Version (12) -
JSON
:: Parser (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: OCSP :: Response (36) -
OpenSSL
:: X509 :: ExtensionFactory (12) - OpenStruct (12)
- Range (12)
- Rational (12)
- Regexp (12)
- Struct (12)
- Symbol (12)
- Tempfile (55)
- Time (12)
-
Win32
:: Registry (24)
モジュール
キーワード
-
create
_ id (12) -
create
_ id= (12) -
json
_ create (156) - new (71)
- open (22)
検索結果
先頭5件
-
Struct
. json _ create(hash) -> Struct (12202.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
Symbol
. json _ create(hash) -> Symbol (12202.0) -
JSON のオブジェクトから Symbol のオブジェクトを生成して返します。
...JSON のオブジェクトから Symbol のオブジェクトを生成して返します。
@param hash 文字列をキー 's' に持つハッシュを指定します。... -
Time
. json _ create(hash) -> Time (12202.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
JSON
. create _ id -> String (9136.0) -
json_create メソッドで使用するクラスを決定するために使用する値を返します。
...json_create メソッドで使用するクラスを決定するために使用する値を返します。
デフォルトは "json_class" です。
//emlist[例][ruby]{
require "json"
class User
attr :id, :name
def initialize(id, name)
@id, @name = id, name
end
def self.json_create(o......json(*)
{
JSON.create_id => self.class.name,
"id" => id,
"name" => name,
}
end
def to_json(*)
as_json.to_json
end
end
json = JSON.generate(User.new(1, "tanaka"))
json # => "{\"json_class\":\"User\",\"id\":1,\"name\":\"tanaka\"}"
JSON.parse(json, create_additions... -
JSON
. create _ id=(identifier) (9136.0) -
json_create メソッドで使用するクラスを決定するために使用する値をセットします。
...json_create メソッドで使用するクラスを決定するために使用する値をセットします。
@param identifier 識別子を指定します。
//emlist[例][ruby]{
require "json"
require "json/add/core"
JSON.create_id # => "json_class"
puts (1..5).to_json......# => {"json_class":"Range","a":[1,5,false]}
JSON.create_id = "my_json_class" # => "my_json_class"
JSON.create_id # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}... -
JSON
:: Parser . new(source , options => {}) -> JSON :: Parser (3207.0) -
パーサを初期化します。
...:create_additions
偽を指定するとマッチするクラスや ID があっても付加情報を生成しません。デフォルトは真です。
: :object_class
JSON のオブジェクトを変換するクラスを指定します。デフォルトは Hash です。
: :array_class
JSON......です。
@param source パーサの元となる文字列を指定します。
@param options オプションを指定するためのハッシュです。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tana......[ruby]{
require 'json'
class Person
attr_accessor :name, :age
def []=(key, value)
instance_variable_set("@#{key}", value)
end
end
parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Person
person.name # => "tanaka"
person.age # => 20
__... -
OpenSSL
:: OCSP :: BasicResponse . new -> OpenSSL :: OCSP :: BasicResponse (3107.0) -
空の BasicResponse オブジェクトを生成します。
...空の BasicResponse オブジェクトを生成します。
@see OpenSSL::OCSP::Response.create... -
OpenSSL
:: OCSP :: Response . new -> OpenSSL :: OCSP :: Response (3107.0) -
Response オブジェクトを生成します。
...Response オブジェクトを生成します。
DER 形式の文字列を渡した場合はその内容を
ロードします。引数なしの場合は空のオブジェクトを返します。
@param der DER 形式の文字列
@see OpenSSL::OCSP::Response.create... -
OpenSSL
:: OCSP :: Response . new(der) -> OpenSSL :: OCSP :: Response (3107.0) -
Response オブジェクトを生成します。
...Response オブジェクトを生成します。
DER 形式の文字列を渡した場合はその内容を
ロードします。引数なしの場合は空のオブジェクトを返します。
@param der DER 形式の文字列
@see OpenSSL::OCSP::Response.create... -
OpenSSL
:: X509 :: ExtensionFactory . new(issuer _ cert=nil , subject _ cert=nil , subject _ req=nil , crl=nil) -> OpenSSL :: X509 :: ExtensionFactory (3107.0) -
ExtensionFactory オブジェクトを生成します。
...ExtensionFactory オブジェクトを生成します。
証明書の発行者や所有者の OpenSSL::X509::Certificate オブジェクトや
OpenSSL::X509::Request、OpenSSL::X509::CRL オブジェクトを
渡すことによって、拡張領域の中身を ExtensionFactory オブジェクトが......tensionFactory#create_extension がその値を計算します。
これらの情報が必要ない場合は nil を渡します。
以下のメソッドによってオブジェクト生成後に証明書オブジェクト等を
設定することができます。
* OpenSSL::X509::ExtensionFacto......ry#issuer_certificate=
* OpenSSL::X509::ExtensionFactory#subject_certificate=
* OpenSSL::X509::ExtensionFactory#subject_request=
* OpenSSL::X509::ExtensionFactory#crl=
@param issuer_cert 証明書発行者、すなわち CA の
OpenSSL::X509::Certificate オブジェクト
@param sub...