2696件ヒット
[1-100件を表示]
(0.086秒)
ライブラリ
- ビルトイン (1458)
- abbrev (12)
- bigdecimal (12)
-
cgi
/ core (48) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (39)
- date (4)
- dbm (36)
- drb (12)
- erb (8)
- forwardable (48)
- gdbm (36)
- ipaddr (12)
- json (144)
- matrix (24)
-
minitest
/ unit (1) -
net
/ http (24) - open-uri (12)
- openssl (60)
- optparse (36)
- ostruct (31)
- pathname (12)
- rake (36)
-
rdoc
/ code _ object (12) -
rdoc
/ text (12) -
rinda
/ rinda (36) -
rinda
/ tuplespace (48) -
rubygems
/ command (48) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ dependency _ list (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (24) -
rubygems
/ source _ info _ cache (60) -
rubygems
/ spec _ fetcher (24) - sdbm (36)
- set (9)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - sync (12)
-
webrick
/ cgi (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (48) -
webrick
/ httpresponse (24) -
webrick
/ server (12) -
yaml
/ dbm (12)
クラス
- Array (43)
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) -
CSV
:: Row (15) -
CSV
:: Table (24) - DBM (36)
-
DRb
:: DRbServer (12) - Data (12)
- Date (2)
- DateTime (2)
- ERB (8)
-
Enumerator
:: ArithmeticSequence (7) - Float (12)
- GDBM (36)
-
Gem
:: Command (48) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: DependencyList (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (24) -
Gem
:: SourceInfoCache (60) -
Gem
:: SpecFetcher (24) - Hash (1116)
- IPAddr (12)
-
JSON
:: State (24) - MatchData (26)
- Matrix (12)
- Method (12)
-
MiniTest
:: Unit (1) - Object (24)
-
OpenSSL
:: Config (12) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (31)
- OptionParser (24)
- Pathname (12)
- Proc (12)
-
RDoc
:: CodeObject (12) -
RDoc
:: Options (12) -
Rake
:: TaskArguments (36) - Range (12)
- Rational (12)
- Regexp (12)
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (36) - SDBM (36)
- Set (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (60)
- Struct (37)
- Time (14)
- UnboundMethod (12)
- Vector (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (48) -
WEBrick
:: HTTPResponse (24) -
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension (48) - Enumerable (41)
- 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 (24) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
Net
:: HTTPHeader (24) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (12) - SingleForwardable (24)
-
Sync
_ m (12)
キーワード
- < (10)
- <= (10)
- == (12)
- === (12)
- > (10)
- >= (10)
- [] (12)
- []= (24)
- abbrev (12)
-
add
_ specs (12) - assoc (12)
- attributes (12)
-
cache
_ data (12) - classify (12)
- clear (12)
- clone (12)
- compact (9)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - config (48)
-
create
_ ext _ from _ hash (12) -
deconstruct
_ keys (20) - default (24)
- default= (12)
-
default
_ proc (12) -
default
_ proc= (12) - defaults (12)
- defaults= (12)
- delegate (24)
- delete (24)
-
delete
_ if (24) - dig (10)
- dup (12)
- each (84)
-
each
_ key (24) -
each
_ pair (24) -
each
_ value (24) - empty? (12)
- eql? (12)
- equal? (12)
- except (4)
- fetch (48)
-
fetch
_ path (12) -
fetch
_ values (20) - files (12)
- filter (14)
- filter! (14)
-
find
_ gems (12) - flatten (12)
- getopts (36)
-
group
_ by (12) - gsub (12)
- gsub! (12)
-
has
_ key? (12) -
has
_ value? (12) -
hash
_ old (12) - header (24)
- include? (12)
- index (7)
- inspect (12)
-
instance
_ delegate (12) - invert (48)
-
keep
_ if (24) - key (12)
- key? (12)
- keys (12)
-
latest
_ cache _ data (12) -
latest
_ specs (12) - length (12)
- member? (12)
- merge (24)
- merge! (24)
- modifiable (12)
-
named
_ captures (12) - params (12)
- params= (12)
-
process
_ args (1) - query (12)
- rassoc (12)
- read (24)
-
read
_ all (24) -
read
_ cache _ data (12) - rehash (30)
- reject (60)
- reject! (24)
- replace (12)
-
reset
_ cache _ for (12) - restore (48)
-
result
_ with _ hash (8) - select (24)
- select! (24)
-
set
_ cache _ data (12) -
set
_ params (12) - shift (12)
-
show
_ hash (12) -
single
_ delegate (12) - size (12)
- slice (8)
-
spec
_ predecessors (12) - specs (12)
- store (12)
-
strip
_ hashes (12) - sub (12)
- sub! (12)
-
sync
_ sh _ locker (6) -
sync
_ sh _ locker= (6) - take (24)
- tally (10)
-
to
_ a (12) -
to
_ csv (12) -
to
_ h (113) -
to
_ hash (108) -
to
_ json (108) -
to
_ json _ raw _ object (12) -
to
_ proc (10) -
to
_ s (24) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) -
type
_ params (12) - update (24)
- value (12)
- value? (12)
- values (12)
-
values
_ at (12) -
with
_ defaults (12)
検索結果
先頭5件
-
Hash
# hash -> Integer (36214.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Gem
:: ConfigFile # hash -> Hash (24403.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
Object
# hash -> Integer (24296.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......eql?(B) ならば A.hash == B.hash
の関係が満たされている必要があります。
ただし、ハッシュのキーとして Integer, Symbol, String などの特定の組み込みクラスが使われるときは、組込みのハッシュ関数が使用され、hash メソッドは呼......ん。
hash メソッドを再定義する場合は、一様に分布する任意の整数を返すようにします。
@return ハッシュ値を返します。Ruby 内部の固定長整数 fixnum に収まらない場合は切り捨てられます。
//emlist[][ruby]{
p self.hash #=> 201350552... -
Hash
# to _ hash -> self (24250.0) -
self を返します。
...self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h... -
Array
# hash -> Integer (24226.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 (24226.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 (24226.0) -
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
...self のハッシュ値を返します。
eql? で等しい文字列は、常にハッシュ値も等しくなります。
//emlist[例][ruby]{
"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
//}
@see Hash... -
Float
# hash -> Integer (24220.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415
pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//}... -
Matrix
# hash -> Integer (24218.0) -
行列のHash値を返します。
...行列のHash値を返します。... -
Method
# hash -> Integer (24214.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
//}...