別のキーワード
ライブラリ
- ビルトイン (724)
- bigdecimal (12)
-
cgi
/ core (72) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (36)
- dbm (12)
- drb (12)
- erb (16)
- forwardable (48)
- gdbm (72)
- ipaddr (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) - matrix (24)
-
minitest
/ unit (1) -
net
/ http (36) -
net
/ imap (24) - openssl (24)
- optparse (36)
- ostruct (22)
- pathname (12)
- rake (60)
-
rdoc
/ context (24) -
rdoc
/ text (12) -
rdoc
/ top _ level (12) -
rexml
/ document (24) -
rexml
/ streamlistener (12) -
rubygems
/ command (48) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ dependency _ list (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (36) -
rubygems
/ source _ info _ cache (60) -
rubygems
/ spec _ fetcher (24) - tsort (58)
-
webrick
/ cgi (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpresponse (12) -
webrick
/ server (12) - win32ole (12)
-
yaml
/ dbm (12)
クラス
- Array (22)
- BigDecimal (24)
- Bignum (3)
- CGI (24)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) -
CSV
:: Row (12) -
CSV
:: Table (24) - Complex (12)
- DBM (12)
-
DRb
:: DRbServer (12) - Data (3)
- Date (12)
- DateTime (12)
- ERB (16)
-
Encoding
:: Converter (48) -
Enumerator
:: ArithmeticSequence (7) - Exception (12)
- Float (12)
- GDBM (72)
-
Gem
:: Command (48) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: DependencyList (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (36) -
Gem
:: SourceInfoCache (60) -
Gem
:: SpecFetcher (24) - Hash (204)
- IPAddr (12)
- MatchData (12)
- Matrix (12)
- Method (12)
-
MiniTest
:: Unit (1) -
Net
:: IMAP (24) - Object (12)
-
OpenSSL
:: Config (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (34)
- OptionParser (24)
- Pathname (12)
- Proc (12)
-
RDoc
:: Context (24) -
RDoc
:: TopLevel (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
Rake
:: TaskArguments (60) - Range (24)
- Rational (24)
- Regexp (36)
- String (240)
- Struct (34)
- Symbol (12)
- Time (24)
- UnboundMethod (12)
- Vector (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPResponse (12) - WIN32OLE (12)
-
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension (48) - Enumerable (43)
- 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) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (12) -
REXML
:: StreamListener (12) - SingleForwardable (24)
- TSort (58)
キーワード
- % (12)
- << (12)
- []= (12)
-
add
_ class _ or _ module (24) -
add
_ specs (12) -
cache
_ data (12) - config (48)
- defaults (12)
- defaults= (12)
- delegate (24)
- dig (40)
- each (60)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - encode (36)
- entities (12)
- eql? (12)
- fetch (60)
-
fetch
_ path (12) - files (12)
- filter! (14)
-
find
_ gems (12) - getopts (36)
-
group
_ by (24) - gsub (48)
- gsub! (48)
-
hash
_ old (12) - header (12)
- inspect (24)
-
instance
_ delegate (12) - invert (12)
- invoke (12)
-
keep
_ if (24) -
latest
_ cache _ data (12) -
latest
_ specs (12) - length (12)
- merge (24)
- merge! (24)
-
named
_ captures (12) - namespaces (12)
- out (12)
- params (12)
- params= (12)
-
primitive
_ convert (48) -
process
_ args (1) -
read
_ cache _ data (12) - reject (24)
- replace (12)
-
reset
_ cache _ for (12) - restore (48)
- result (8)
-
result
_ with _ hash (8) - select (12)
- select! (24)
-
set
_ cache _ data (12) -
single
_ delegate (12) - size (12)
-
spec
_ predecessors (12) - specs (12)
- starttls (24)
-
strip
_ hashes (12) -
strongly
_ connected _ components (12) - sub (36)
- sub! (36)
-
tag
_ start (12) -
to
_ csv (12) -
to
_ h (19) -
to
_ hash (24) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (36) -
unmatched
_ alias _ lists (12) - update (24)
-
with
_ defaults (12)
検索結果
先頭5件
-
Hash
# hash -> Integer (27214.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
String
# hash -> Integer (21226.0) -
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
...self のハッシュ値を返します。
eql? で等しい文字列は、常にハッシュ値も等しくなります。
//emlist[例][ruby]{
"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
//}
@see Hash... -
Range
# hash -> Integer (21214.0) -
始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
...始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
//emlist[例][ruby]{
p (1..2).hash # => 5646
p (1...2).hash # => 16782863
//}... -
Regexp
# hash -> Integer (21214.0) -
正規表現のオプションやテキストに基づいたハッシュ値を返します。
...正規表現のオプションやテキストに基づいたハッシュ値を返します。
//emlist[例][ruby]{
p /abc/i.hash # => 4893115
p /abc/.hash # => 4856055
//}... -
Gem
:: ConfigFile # hash -> Hash (21203.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
BigDecimal
# hash -> Integer (21202.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。
符号、小数部、指数部が同じ場合に同じハッシュ値を返します。 -
Bignum
# hash -> Integer (21202.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。 -
Object
# hash -> Integer (18296.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......eql?(B) ならば A.hash == B.hash
の関係が満たされている必要があります。
ただし、ハッシュのキーとして Integer, Symbol, String などの特定の組み込みクラスが使われるときは、組込みのハッシュ関数が使用され、hash メソッドは呼......t[][ruby]{
p self.hash #=> 2013505522753096494
p 0.hash #=> 2647535320520409998
p 0.0.hash #=> -2975129765814025835
p nil.hash #=> 2401531420355998067
p "ruby".hash #=> 4460896024486900438
p "ruby".hash #=> 4460896024486900438
p :ruby.hash #=> 3979895509189707770
p :ruby.hash #=> 39798955091... -
Array
# hash -> Integer (18226.0) -
自身のハッシュ値を整数で返します。ハッシュ値は自身の各要素のハッシュ値から 計算されます。Array#eql? で比較して等しい配列同士は同じハッシュ値を返します。
...ら
計算されます。Array#eql? で比較して等しい配列同士は同じハッシュ値を返します。
//emlist[例][ruby]{
a = ["a", "b", 1]
a.hash #=> 321
b = a.dup
b.hash #=> 321
["a", 1, "b"].hash #=> 491
["a", 1.0, "b"].hash #=> 466227
//}... -
Data
# hash -> Integer (18226.0) -
自身のハッシュ値を整数で返します。 Data#eql? で比較して等しいオブジェクトは同じハッシュ値を返します。
...シュ値を返します。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
dog1 = Dog.new("Fred", 5)
p dog1.hash # => -3931425561194935428
dog2 = Dog.new("Fred", 5)
p dog2.hash # => -3931425561194935428
dog3 = Dog.new("Fred", 6)
p dog3.hash # => -4469132459285820530
//}
[注意] 本メソッ......ドの記述は Data のサブクラスのインスタンスに対して呼び
出す事を想定しています。Data.define は Data のサブクラスを作成する点に
注意してください。
@see Object#hash...