904件ヒット
[1-100件を表示]
(0.288秒)
ライブラリ
- ビルトイン (288)
- abbrev (12)
-
cgi
/ core (36) - csv (24)
- dbm (12)
- erb (16)
- forwardable (48)
- gdbm (12)
- json (132)
-
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) -
net
/ http (36) - openssl (24)
- rake (24)
-
rdoc
/ context (12) -
rdoc
/ text (12) -
rexml
/ document (36) -
rubygems
/ remote _ fetcher (12) -
webrick
/ httprequest (12) -
yaml
/ dbm (12)
クラス
- Array (12)
- BigDecimal (12)
- CGI (24)
-
CSV
:: Table (24) - Complex (12)
- DBM (12)
- Date (12)
- DateTime (12)
- ERB (16)
- Exception (12)
- GDBM (12)
-
Gem
:: RemoteFetcher (12) - Hash (24)
- Object (12)
-
OpenSSL
:: X509 :: ExtensionFactory (24) - OpenStruct (12)
-
RDoc
:: Context (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
Rake
:: TaskArguments (24) - Range (12)
- Rational (12)
- Regexp (24)
- String (240)
- Struct (12)
- Symbol (12)
- Time (12)
-
WEBrick
:: HTTPRequest (12) -
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension (12) - Forwardable (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 (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
Net
:: HTTPHeader (36) -
RDoc
:: Text (12) - SingleForwardable (24)
キーワード
- % (12)
- abbrev (12)
-
add
_ element (12) -
create
_ extension (24) - delegate (24)
- encode (36)
- entities (12)
- eql? (12)
- fetch (48)
-
fetch
_ path (12) - gsub (48)
- gsub! (48)
- header (12)
- inspect (24)
-
instance
_ delegate (12) -
named
_ captures (12) - namespaces (12)
- out (12)
- params (12)
- query (12)
- reject (12)
- result (8)
-
result
_ with _ hash (8) - select (12)
-
single
_ delegate (12) -
strip
_ hashes (12) - sub (36)
- sub! (36)
-
to
_ csv (12) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (36) -
unmatched
_ alias _ lists (12)
検索結果
先頭5件
-
String
# hash -> Integer (30226.0) -
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
...self のハッシュ値を返します。
eql? で等しい文字列は、常にハッシュ値も等しくなります。
//emlist[例][ruby]{
"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
//}
@see Hash... -
Object
# hash -> Integer (21302.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......して判定されます。
逆に、2つのハッシュ値が同じとき、さらに Object#eql? での比較により判定されます。
そのため、同じキーとして判定される状況は Object#eql? の比較で真となる場合のみであり、このとき前段階としてハッ......eql?(B) ならば A.hash == B.hash
の関係が満たされている必要があります。
ただし、ハッシュのキーとして Integer, Symbol, String などの特定の組み込みクラスが使われるときは、組込みのハッシュ関数が使用され、hash メソッドは呼... -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (15315.0) -
自身から生成した JSON 形式の文字列を返します。
...ます。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
requir......e "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (15315.0) -
自身から生成した JSON 形式の文字列を返します。
...ドは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のイ......JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(a......scii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}... -
OpenSSL
:: X509 :: ExtensionFactory # create _ extension(obj) -> OpenSSL :: X509 :: Extension (15313.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
...9::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL::X509::ExtensionFactory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
O......penSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、
OpenSSL::X509::ExtensionFactory#create_ext が呼びだされて
オブジェクトを生成します。
@param obj 拡張領......域のデータ。配列、ハッシュ、文字列のいずれか
@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値)... -
OpenSSL
:: X509 :: ExtensionFactory # create _ extension(oid , value , critical=false) -> OpenSSL :: X509 :: Extension (15313.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
...9::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL::X509::ExtensionFactory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
O......penSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、
OpenSSL::X509::ExtensionFactory#create_ext が呼びだされて
オブジェクトを生成します。
@param obj 拡張領......域のデータ。配列、ハッシュ、文字列のいずれか
@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値)... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (15246.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (15208.0) -
生の文字列を格納したハッシュを生成します。
...UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json......# source sequence is illegal/malformed (JSON::GeneratorError)... -
Hash
# inspect -> String (15203.0) -
ハッシュの内容を人間に読みやすい文字列にして返します。
...ハッシュの内容を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
h = { "c" => 300, "a" => 100, "d" => 400 }
h.inspect # => "{\"c\"=>300, \"a\"=>100, \"d\"=>400}"
//}...