ライブラリ
- ビルトイン (1726)
- abbrev (11)
- bigdecimal (11)
-
cgi
/ core (66) -
cgi
/ session (33) -
cgi
/ session / pstore (11) - csv (44)
- dbm (55)
- drb (11)
- erb (14)
- forwardable (44)
- gdbm (66)
- ipaddr (11)
- json (143)
-
json
/ add / bigdecimal (11) -
json
/ add / complex (11) -
json
/ add / date (11) -
json
/ add / date _ time (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / range (11) -
json
/ add / rational (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / symbol (11) -
json
/ add / time (11) - matrix (22)
-
minitest
/ unit (1) - mkmf (55)
-
net
/ http (66) -
net
/ imap (22) - open-uri (11)
- openssl (77)
- optparse (33)
- ostruct (54)
- pathname (11)
- pstore (66)
- rake (55)
-
rdoc
/ code _ object (11) -
rdoc
/ context (33) -
rdoc
/ text (11) -
rdoc
/ top _ level (11) -
rexml
/ document (66) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (11) -
rinda
/ rinda (44) -
rinda
/ tuplespace (55) -
rubygems
/ command (44) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ config _ file (22) -
rubygems
/ dependency _ list (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (33) -
rubygems
/ source _ info _ cache (55) -
rubygems
/ spec _ fetcher (22) - sdbm (55)
- set (18)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - sync (12)
- tsort (85)
-
webrick
/ cgi (11) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (44) -
webrick
/ httpresponse (22) -
webrick
/ server (11) - win32ole (11)
-
yaml
/ dbm (44)
クラス
- Array (100)
- BigDecimal (22)
- Bignum (3)
- CGI (22)
-
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (11) -
CGI
:: Session :: PStore (11) -
CSV
:: Row (22) -
CSV
:: Table (22) - Complex (11)
- DBM (55)
-
DRb
:: DRbServer (11) - Data (8)
- Date (11)
- DateTime (11)
- ERB (14)
-
Encoding
:: Converter (44) -
Enumerator
:: ArithmeticSequence (6) - Exception (11)
- Float (11)
- GDBM (66)
-
Gem
:: Command (44) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: ConfigFile (22) -
Gem
:: DependencyList (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (33) -
Gem
:: SourceInfoCache (55) -
Gem
:: SpecFetcher (22) - Hash (1015)
- IPAddr (11)
-
JSON
:: State (22) - KeyError (14)
- MatchData (22)
- Matrix (11)
- Method (11)
-
MiniTest
:: Unit (1) - Module (5)
-
Net
:: IMAP (22) - Numeric (11)
- Object (55)
-
OpenSSL
:: Config (11) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (33) -
OpenSSL
:: X509 :: Name (11) - OpenStruct (65)
- OptionParser (22)
- PStore (66)
- Pathname (11)
- Proc (16)
-
RDoc
:: CodeObject (11) -
RDoc
:: Context (33) -
RDoc
:: Options (11) -
RDoc
:: TopLevel (11) -
REXML
:: Attributes (11) -
REXML
:: DocType (11) -
REXML
:: Element (44) -
Rake
:: TaskArguments (55) - Range (22)
- Rational (22)
- Regexp (33)
-
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (44) -
Rinda
:: TupleSpaceProxy (44) -
RubyVM
:: InstructionSequence (11) - SDBM (55)
- Set (18)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (220)
- Struct (48)
- Symbol (11)
- Time (22)
- UnboundMethod (22)
- Vector (11)
-
WEBrick
:: CGI (11) -
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (44) -
WEBrick
:: HTTPResponse (22) - WIN32OLE (11)
-
YAML
:: DBM (44)
モジュール
-
CGI
:: QueryExtension (44) - Enumerable (71)
- Forwardable (22)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (55)
-
Net
:: HTTPHeader (66) -
OpenURI
:: Meta (11) -
OptionParser
:: Arguable (11) -
RDoc
:: Text (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (11) - SingleForwardable (22)
-
Sync
_ m (12) - TSort (85)
キーワード
- % (11)
- < (9)
- << (11)
- <= (9)
- == (11)
- === (11)
- > (9)
- >= (9)
- [] (22)
- []= (33)
- abbrev (11)
-
add
_ attributes (11) -
add
_ class _ or _ module (22) -
add
_ element (11) -
add
_ specs (11) - assoc (11)
- attributes (11)
-
cache
_ data (11) - classify (11)
- clear (11)
- clone (11)
- collect (24)
- compact (8)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - config (44)
- context (11)
- context= (11)
-
create
_ ext _ from _ hash (11) -
create
_ extension (22) -
deconstruct
_ keys (2) - default (22)
- default= (11)
-
default
_ proc (11) -
default
_ proc= (11) - defaults (11)
- defaults= (11)
- delegate (22)
- delete (33)
-
delete
_ if (22) - difference (6)
- dig (36)
- dup (11)
- each (88)
-
each
_ key (22) -
each
_ pair (22) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) -
each
_ value (22) - empty? (11)
- encode (33)
- entities (11)
- eql? (55)
- equal? (11)
- except (3)
- fetch (99)
-
fetch
_ path (11) -
fetch
_ values (18) - files (11)
- filter (12)
- filter! (12)
-
find
_ gems (11) - flatten (11)
-
form
_ data= (11) - getopts (33)
-
group
_ by (22) - gsub (44)
- gsub! (44)
-
has
_ key? (11) -
has
_ value? (11) -
hash
_ old (11) - header (33)
- include? (11)
- index (7)
- inspect (22)
-
instance
_ delegate (11) - intersection (5)
- invert (44)
- invoke (11)
-
is
_ a? (11) -
keep
_ if (22) - key (18)
- key? (11)
- keys (11)
-
kind
_ of? (11) -
latest
_ cache _ data (11) -
latest
_ specs (11) - length (11)
- map (24)
- member? (11)
- merge (22)
- merge! (22)
- modifiable (11)
-
named
_ captures (22) - namespaces (11)
- out (11)
- owner (11)
- params (11)
- params= (11)
-
primitive
_ convert (44) -
process
_ args (1) - query (11)
- rassoc (11)
- read (22)
-
read
_ all (22) -
read
_ cache _ data (11) - receiver (7)
- rehash (29)
- reject (66)
- reject! (22)
- replace (55)
- reset (7)
-
reset
_ cache _ for (11) - restore (44)
- result (7)
-
result
_ with _ hash (7) -
rm
_ f (11) -
rm
_ rf (11) - root? (11)
- roots (11)
-
ruby2
_ keywords (10) - select (33)
- select! (22)
-
set
_ cache _ data (11) -
set
_ form _ data (11) -
set
_ params (11) - shift (11)
-
show
_ hash (11) -
single
_ delegate (11) - size (11)
- slice (7)
-
spec
_ predecessors (11) - specs (11)
-
start
_ element (11) - starttls (22)
- store (11)
-
strip
_ hashes (11) -
strongly
_ connected _ components (11) - sub (33)
- sub! (33)
-
sync
_ sh _ locker (6) -
sync
_ sh _ locker= (6) -
tag
_ start (11) - take (22)
- tally (8)
-
to
_ a (22) -
to
_ csv (11) -
to
_ h (106) -
to
_ hash (99) -
to
_ json (231) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ proc (9) -
to
_ s (33) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
try
_ do (22) - tsort (11)
-
tsort
_ each (21) -
type
_ params (11) - union (6)
-
unmatched
_ alias _ lists (11) -
unmatched
_ alias _ lists= (11) - update (44)
- value (11)
- value? (11)
- values (11)
-
values
_ at (11) -
with
_ defaults (11) - write (22)
- xsystem (11)
- | (11)
検索結果
先頭5件
-
Hash
# hash -> Integer (27114.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Gem
:: ConfigFile # hash -> Hash (18203.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
Object
# hash -> Integer (18196.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 (18126.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 (18126.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... -
String
# hash -> Integer (18126.0) -
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
...self のハッシュ値を返します。
eql? で等しい文字列は、常にハッシュ値も等しくなります。
//emlist[例][ruby]{
"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
//}
@see Hash... -
Float
# hash -> Integer (18120.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415
pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//}... -
Matrix
# hash -> Integer (18118.0) -
行列のHash値を返します。
...行列のHash値を返します。... -
Method
# hash -> Integer (18114.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==)
b = method(:eql?)
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}... -
Range
# hash -> Integer (18114.0) -
始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
...始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
//emlist[例][ruby]{
p (1..2).hash # => 5646
p (1...2).hash # => 16782863
//}...