2582件ヒット
[1-100件を表示]
(0.112秒)
別のキーワード
ライブラリ
- ビルトイン (1360)
- abbrev (12)
-
cgi
/ core (48) -
cgi
/ session / pstore (12) - csv (24)
- dbm (48)
- erb (8)
- gdbm (48)
- ipaddr (12)
-
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / regexp (12) -
minitest
/ unit (1) - mkmf (36)
-
net
/ http (72) -
net
/ imap (24) - open-uri (12)
- openssl (84)
- optparse (36)
- ostruct (60)
- pathname (12)
- pstore (72)
- rake (24)
-
rdoc
/ context (12) -
rdoc
/ text (12) -
rdoc
/ top _ level (12) -
rexml
/ document (24) -
rinda
/ rinda (48) -
rinda
/ tuplespace (60) -
rubygems
/ command (24) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (12) -
rubygems
/ spec _ fetcher (24) - sdbm (48)
- set (9)
-
shell
/ command-processor (6) - tsort (70)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (48) -
webrick
/ httpresponse (24) -
yaml
/ dbm (24)
クラス
- Array (40)
- CGI (24)
-
CGI
:: Session :: PStore (12) -
CSV
:: Table (24) - Complex (12)
- DBM (48)
- Data (3)
- ERB (8)
-
Encoding
:: Converter (48) - Exception (12)
- GDBM (48)
-
Gem
:: Command (24) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: DependencyList (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (12) -
Gem
:: SpecFetcher (24) - Hash (800)
- IPAddr (12)
- KeyError (16)
- MatchData (12)
- Method (12)
-
MiniTest
:: Unit (1) -
Net
:: IMAP (24) - Numeric (12)
- Object (60)
-
OpenSSL
:: Config (12) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (72)
- OptionParser (24)
- PStore (72)
- Pathname (12)
- Proc (18)
-
RDoc
:: Context (12) -
RDoc
:: Options (12) -
RDoc
:: TopLevel (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
Rake
:: TaskArguments (24) - Range (12)
- Regexp (36)
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (48) -
Rinda
:: TupleSpaceProxy (48) - SDBM (48)
- Set (12)
-
Shell
:: CommandProcessor (6) - String (228)
- Struct (12)
- UnboundMethod (12)
-
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (48) -
WEBrick
:: HTTPResponse (24) -
YAML
:: DBM (24)
モジュール
-
CGI
:: QueryExtension (24) - Enumerable (60)
- Kernel (36)
-
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (12) -
OptionParser
:: Arguable (12) -
RDoc
:: Text (12) - TSort (70)
キーワード
- % (12)
- [] (24)
- []= (36)
- abbrev (12)
-
add
_ class _ or _ module (24) -
add
_ specs (12) - attributes (12)
- classify (12)
- clear (12)
- clone (12)
- collect (28)
- compact (9)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - config (12)
-
create
_ ext _ from _ hash (12) -
create
_ extension (24) - default (24)
- default= (12)
-
default
_ proc (12) -
default
_ proc= (12) - delete (36)
-
delete
_ if (24) - dig (10)
- dup (12)
- each (48)
-
each
_ key (24) -
each
_ pair (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
each
_ value (24) - empty? (12)
- encode (36)
- entities (12)
- eql? (48)
- equal? (12)
- except (4)
- fetch (108)
-
fetch
_ path (12) -
find
_ gems (12) -
form
_ data= (12) - getopts (36)
-
group
_ by (24) - gsub (48)
- gsub! (48)
-
has
_ key? (12) -
has
_ value? (12) -
hash
_ old (12) - header (36)
- include? (12)
- index (7)
- inspect (24)
- invert (48)
-
is
_ a? (12) -
keep
_ if (24) - key (20)
- key? (12)
- keys (12)
-
kind
_ of? (12) -
latest
_ specs (12) - map (28)
- member? (12)
- merge (24)
- merge! (24)
- modifiable (12)
-
named
_ captures (24) - namespaces (12)
- out (12)
- params (12)
- params= (12)
-
primitive
_ convert (48) -
process
_ args (1) - query (12)
- read (24)
-
read
_ all (24) - receiver (8)
- rehash (18)
- reject (24)
- reject! (24)
- replace (60)
- restore (12)
- result (8)
- root? (12)
- roots (12)
-
ruby2
_ keywords (6) - select (12)
- select! (10)
-
set
_ form _ data (12) -
set
_ params (12) - shift (12)
-
show
_ hash (12) -
spec
_ predecessors (12) - specs (12)
- starttls (24)
- store (12)
-
strip
_ hashes (12) -
strongly
_ connected _ components (12) - sub (36)
- sub! (36)
- take (24)
- tally (8)
-
to
_ a (12) -
to
_ csv (12) -
to
_ h (45) -
to
_ hash (48) -
to
_ json (48) -
to
_ proc (10) -
to
_ s (36) -
try
_ do (24) - tsort (12)
-
type
_ params (12) - update (48)
- value (12)
- value? (12)
- values (12)
-
values
_ at (12) - write (24)
- xsystem (12)
検索結果
先頭5件
-
Hash
# hash -> Integer (27126.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Regexp
# hash -> Integer (21126.0) -
正規表現のオプションやテキストに基づいたハッシュ値を返します。
...正規表現のオプションやテキストに基づいたハッシュ値を返します。
//emlist[例][ruby]{
p /abc/i.hash # => 4893115
p /abc/.hash # => 4856055
//}... -
IPAddr
# hash -> Integer (21108.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
@see Object#hash... -
OpenStruct
# hash -> Integer (21102.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。 -
Pathname
# hash -> Integer (21102.0) -
ハッシュ値を返します。
ハッシュ値を返します。 -
Proc
# hash -> Integer (21102.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。 -
Object
# hash -> Integer (18244.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......eql?(B) ならば A.hash == B.hash
の関係が満たされている必要があります。
ただし、ハッシュのキーとして Integer, Symbol, String などの特定の組み込みクラスが使われるときは、組込みのハッシュ関数が使用され、hash メソッドは呼......mlist[][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 #=> 3979895... -
Data
# hash -> Integer (18144.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... -
Method
# hash -> Integer (18132.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
//}... -
UnboundMethod
# hash -> Integer (18132.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
//}...