199件ヒット
[1-100件を表示]
(0.078秒)
別のキーワード
ライブラリ
- ビルトイン (19)
- erb (12)
- json (48)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) -
rubygems
/ requirement (24) -
rubygems
/ version (12)
クラス
- Date (12)
- DateTime (12)
- ERB (12)
- Exception (12)
-
Gem
:: Requirement (24) -
Gem
:: Version (12) -
JSON
:: Parser (12) - Proc (19)
- Range (12)
- Regexp (12)
- Struct (12)
- Time (12)
モジュール
キーワード
-
create
_ id (12) -
create
_ id= (12) -
json
_ create (96) - new (55)
検索結果
先頭5件
-
Gem
:: Version . create(input) -> Gem :: Version | nil (18126.0) -
Gem::Version のインスタンスを作成するためのファクトリメソッドです。
...するためのファクトリメソッドです。
//emlist[][ruby]{
ver1 = Gem::Version.create('1.3.17') # => #<Gem::Version "1.3.17">
ver2 = Gem::Version.create(ver1) # => #<Gem::Version "1.3.17">
ver3 = Gem::Version.create(nil) # => nil
//}
@param input Gem::Version のインス... -
Gem
:: Requirement . create(input) -> Gem :: Requirement (18114.0) -
Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。
...のいずれかを指定します。
@return 上記以外の値を input に指定するとデフォルト値を返します。
//emlist[][ruby]{
pp Gem::Requirement.create("~> 3.2.1")
# => Gem::Requirement.new(["~> 3.2.1"])
//}
@see Gem::Requirement.new, Gem::Requirement.default... -
JSON
. create _ id -> String (6142.0) -
json_create メソッドで使用するクラスを決定するために使用する値を返します。
...son_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(ob......{
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: true)... -
JSON
. create _ id=(identifier) (6142.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
:: Generator :: GeneratorMethods :: String :: Extend . json _ create(hash) -> String (6124.0) -
JSON のオブジェクトから Ruby の文字列を生成して返します。
...JSON のオブジェクトから Ruby の文字列を生成して返します。
@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。
require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A... -
Date
. json _ create(hash) -> Date (6118.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
DateTime
. json _ create(hash) -> DateTime (6118.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
Exception
. json _ create(hash) -> Exception (6118.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
Range
. json _ create(hash) -> Range (6118.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。...