2729件ヒット
[101-200件を表示]
(0.228秒)
ライブラリ
- ビルトイン (1160)
- abbrev (12)
- bigdecimal (12)
-
cgi
/ core (72) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (24)
- date (4)
- dbm (24)
- drb (12)
- erb (16)
- forwardable (36)
- gdbm (36)
- 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) - mkmf (36)
-
net
/ http (36) -
net
/ imap (24) - open-uri (12)
- openssl (72)
- optparse (36)
- ostruct (34)
- pathname (12)
- rake (36)
-
rdoc
/ context (36) -
rdoc
/ text (12) -
rdoc
/ top _ level (12) -
rexml
/ document (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
rinda
/ rinda (48) -
rinda
/ tuplespace (60) -
rubygems
/ command (24) -
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) - sdbm (12)
- set (9)
-
shell
/ filter (6) - tsort (47)
-
webrick
/ cgi (12) -
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (48) -
webrick
/ httpresponse (24) -
webrick
/ server (12) - win32ole (12)
-
yaml
/ dbm (12)
クラス
- Array (68)
- BigDecimal (24)
- Bignum (3)
- CGI (24)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) -
CSV
:: Table (24) - Complex (12)
- DBM (24)
-
DRb
:: DRbServer (12) - Data (6)
- Date (14)
- DateTime (14)
- ERB (16)
-
Encoding
:: Converter (48) -
Enumerator
:: ArithmeticSequence (7) - Exception (12)
- Float (12)
- GDBM (36)
-
Gem
:: Command (24) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: DependencyList (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (36) -
Gem
:: SourceInfoCache (60) - Hash (507)
- IPAddr (12)
- KeyError (8)
- MatchData (13)
- Matrix (12)
- Method (12)
-
MiniTest
:: Unit (1) - Module (12)
-
Net
:: IMAP (24) - Numeric (12)
- Object (36)
-
OpenSSL
:: Config (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (46)
- OptionParser (24)
- Pathname (12)
- Proc (12)
-
RDoc
:: Context (36) -
RDoc
:: Options (12) -
RDoc
:: TopLevel (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
REXML
:: Element (36) -
Rake
:: TaskArguments (36) - Range (24)
- Rational (24)
- Regexp (36)
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (48) -
Rinda
:: TupleSpaceProxy (48) -
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Set (12)
-
Shell
:: Filter (6) - String (240)
- Struct (34)
- Symbol (12)
- Time (26)
- UnboundMethod (12)
- Vector (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (48) -
WEBrick
:: HTTPResponse (24) - WIN32OLE (12)
-
YAML
:: DBM (12)
モジュール
-
CGI
:: QueryExtension (48) - Enumerable (65)
- Forwardable (12)
-
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) - Kernel (36)
-
Net
:: HTTPHeader (36) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (12) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) - SingleForwardable (24)
- TSort (47)
キーワード
- % (12)
- [] (12)
- []= (12)
- abbrev (12)
-
add
_ attributes (12) -
add
_ class _ or _ module (24) -
add
_ element (12) -
add
_ specs (12) - all? (8)
- assoc (12)
- attributes (12)
-
cache
_ data (12) - classify (12)
- collect (14)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - config (48)
- context (12)
-
create
_ ext _ from _ hash (12) -
create
_ extension (24) -
deconstruct
_ keys (9) - default (24)
-
default
_ proc (12) - delegate (12)
- delete (12)
-
delete
_ if (24) - difference (7)
- dig (40)
- each (60)
-
each
_ pair (24) -
each
_ strongly _ connected _ component (12) -
each
_ strongly _ connected _ component _ from (23) - encode (36)
- entities (12)
- eql? (24)
- fetch (60)
-
fetch
_ path (12) - files (12)
- filter (14)
- filter! (14)
-
find
_ gems (12) - getopts (36)
-
group
_ by (24) - gsub (48)
- gsub! (48)
-
hash
_ old (12) - header (36)
- include? (12)
- index (7)
- inspect (24)
-
instance
_ delegate (12) - intersection (6)
- invert (48)
- invoke (12)
-
is
_ a? (12) -
keep
_ if (24) - key (7)
-
kind
_ of? (12) -
latest
_ cache _ data (12) - length (12)
- map (14)
- modifiable (12)
-
named
_ captures (13) - namespaces (12)
- out (12)
- params (12)
- params= (12)
-
primitive
_ convert (48) -
process
_ args (1) - query (12)
- rassoc (12)
- read (24)
-
read
_ all (24) -
read
_ cache _ data (12) - receiver (8)
- rehash (6)
- reject (36)
- reject! (24)
-
reset
_ cache _ for (12) - restore (48)
- result (8)
-
result
_ with _ hash (8) -
rm
_ f (12) -
rm
_ rf (12) -
ruby2
_ keywords (12) - select (26)
- select! (24)
-
set
_ cache _ data (12) - shift (12)
-
show
_ hash (12) -
single
_ delegate (12) - size (12)
- slice (8)
-
spec
_ predecessors (12) -
start
_ element (12) - starttls (24)
-
strip
_ hashes (12) - sub (36)
- sub! (36)
-
tag
_ start (12) - take (24)
-
to
_ a (12) -
to
_ csv (12) -
to
_ h (31) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (36) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) -
tsort
_ each (12) - union (7)
-
unmatched
_ alias _ lists (12) -
unmatched
_ alias _ lists= (12) - value (12)
-
with
_ defaults (12) - write (24)
- xsystem (12)
検索結果
先頭5件
-
Enumerator
:: ArithmeticSequence # hash -> Integer (21202.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence は
同じハッシュ値を返します。... -
Object
# hash -> Integer (18296.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......eql?(B) ならば A.hash == B.hash
の関係が満たされている必要があります。
ただし、ハッシュのキーとして Integer, Symbol, String などの特定の組み込みクラスが使われるときは、組込みのハッシュ関数が使用され、hash メソッドは呼......長整数 fixnum に収まらない場合は切り捨てられます。
//emlist[][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 #=> 4460896... -
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... -
Float
# hash -> Integer (18220.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415
pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//}... -
Regexp
# hash -> Integer (18220.0) -
正規表現のオプションやテキストに基づいたハッシュ値を返します。
...正規表現のオプションやテキストに基づいたハッシュ値を返します。
//emlist[例][ruby]{
p /abc/i.hash # => 4893115
p /abc/.hash # => 4856055
//}... -
Method
# hash -> Integer (18214.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 (18214.0) -
始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
...始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
//emlist[例][ruby]{
p (1..2).hash # => 5646
p (1...2).hash # => 16782863
//}... -
Struct
# hash -> Integer (18214.0) -
self が保持するメンバのハッシュ値を元にして算出した整数を返します。 self が保持するメンバの値が変化すればこのメソッドが返す値も変化します。
...値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
Dog = Struct.new(:name, :age)
dog = Dog.new("fred", 5)
p dog.hash #=> 7917421
dog.name = "john"
p dog.hash #=> -38913223
//}
[注意] 本メソッドの記述は Stru... -
UnboundMethod
# hash -> Integer (18214.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==).unbind
b = method(:eql?).unbind
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}...