種類
ライブラリ
- ビルトイン (2598)
- abbrev (22)
- bigdecimal (11)
-
cgi
/ core (99) -
cgi
/ session (33) -
cgi
/ session / pstore (11) -
cgi
/ util (11) - coverage (22)
- csv (286)
- date (110)
- dbm (66)
-
digest
/ sha1 (11) -
digest
/ sha2 (33) - drb (33)
-
drb
/ extservm (22) -
drb
/ gw (11) - erb (14)
- etc (11)
- fileutils (11)
- forwardable (44)
- gdbm (77)
- ipaddr (11)
- irb (11)
-
irb
/ inspector (11) - json (264)
-
json
/ add / bigdecimal (22) -
json
/ add / complex (22) -
json
/ add / date (22) -
json
/ add / date _ time (22) -
json
/ add / exception (22) -
json
/ add / ostruct (22) -
json
/ add / range (22) -
json
/ add / rational (22) -
json
/ add / regexp (22) -
json
/ add / struct (22) -
json
/ add / symbol (22) -
json
/ add / time (22) - matrix (22)
-
minitest
/ unit (1) - mkmf (66)
-
net
/ http (110) -
net
/ imap (44) -
net
/ pop (11) - objspace (33)
- open-uri (33)
- open3 (99)
- openssl (99)
- optparse (66)
- ostruct (65)
- pathname (11)
- pstore (77)
- psych (17)
- rake (55)
- rbconfig (33)
-
rbconfig
/ sizeof (22) -
rdoc
/ code _ object (11) -
rdoc
/ context (33) -
rdoc
/ markdown / entities (11) -
rdoc
/ markup / to _ html _ crossref (11) -
rdoc
/ text (11) -
rdoc
/ top _ level (11) -
rexml
/ document (121) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (11) -
rinda
/ rinda (55) -
rinda
/ tuplespace (55) - rubygems (33)
-
rubygems
/ command (55) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ config _ file (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ requirement (11) -
rubygems
/ security (33) -
rubygems
/ source _ index (33) -
rubygems
/ source _ info _ cache (66) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (22) - sdbm (66)
- set (18)
- shell (6)
-
shell
/ command-processor (12) -
shell
/ filter (6) - sync (12)
-
syslog
/ logger (11) - tsort (96)
- uri (165)
-
webrick
/ accesslog (11) -
webrick
/ cgi (11) -
webrick
/ config (33) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (44) -
webrick
/ httpresponse (22) -
webrick
/ https (11) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httputils (44) -
webrick
/ server (11) -
webrick
/ ssl (22) - win32ole (22)
-
yaml
/ dbm (44) -
yaml
/ store (30)
クラス
- Array (100)
- BigDecimal (33)
- Bignum (3)
- CGI (66)
-
CGI
:: Cookie (11) -
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (11) -
CGI
:: Session :: PStore (11) - CSV (242)
-
CSV
:: Row (22) -
CSV
:: Table (22) - Complex (22)
- Coverage (22)
- DBM (55)
-
DRb
:: DRbServer (22) -
DRb
:: ExtServManager (22) - Data (8)
- Date (121)
- DateTime (33)
- ERB (14)
- Encoding (11)
-
Encoding
:: Converter (44) -
Enumerator
:: ArithmeticSequence (6) - Exception (22)
- Float (11)
- GDBM (66)
-
Gem
:: Command (55) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: ConfigFile (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: Requirement (11) -
Gem
:: SourceIndex (33) -
Gem
:: SourceInfoCache (66) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (22) - Hash (1078)
- IO (154)
- IPAddr (11)
-
JSON
:: Parser (11) -
JSON
:: State (44) - KeyError (14)
- MatchData (22)
- Matrix (11)
- Method (11)
-
MiniTest
:: Unit (1) - Module (5)
-
Net
:: HTTP (11) -
Net
:: HTTPRequest (11) -
Net
:: HTTPResponse (22) -
Net
:: IMAP (44) -
Net
:: POP3 (11) - Numeric (11)
- Object (66)
-
OpenSSL
:: Config (11) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (33) -
OpenSSL
:: X509 :: Name (11) - OpenStruct (87)
- OptionParser (44)
- PStore (66)
- Pathname (11)
- Proc (16)
-
RDoc
:: CodeObject (11) -
RDoc
:: Context (33) -
RDoc
:: Markdown (11) -
RDoc
:: Markup :: ToHtmlCrossref (11) -
RDoc
:: Options (11) -
RDoc
:: TopLevel (11) -
REXML
:: Attributes (11) -
REXML
:: DocType (22) -
REXML
:: Document (11) -
REXML
:: Element (55) -
REXML
:: XPath (22) -
Rake
:: TaskArguments (55) - Range (33)
- Rational (33)
- Regexp (44)
-
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (44) -
Rinda
:: TupleSpaceProxy (44) -
RubyVM
:: InstructionSequence (66) - SDBM (55)
- Set (18)
- Shell (6)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (6) - String (220)
- Struct (59)
- Symbol (22)
-
Syslog
:: Logger (11) - Thread (11)
- Time (33)
-
URI
:: FTP (22) -
URI
:: Generic (44) -
URI
:: HTTP (22) -
URI
:: LDAP (22) -
URI
:: MailTo (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) -
WEBrick
:: HTTPServlet :: FileHandler (11) - WIN32OLE (11)
-
YAML
:: DBM (44) -
YAML
:: Store (19)
モジュール
- Abbrev (11)
-
CGI
:: QueryExtension (44) - DRb (11)
- Enumerable (71)
- Etc (11)
- FileUtils (11)
- Forwardable (22)
- GC (54)
-
GC
:: Profiler (11) - Gem (11)
-
Gem
:: QuickLoader (22) -
Gem
:: Security (33) - IRB (11)
- JSON (55)
-
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 :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (231)
- Marshal (22)
-
Net
:: HTTPHeader (66) - ObjectSpace (44)
- Open3 (99)
- OpenURI (22)
-
OpenURI
:: Meta (11) -
OptionParser
:: Arguable (11) - Psych (17)
-
RDoc
:: Text (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (11) - RbConfig (55)
- Signal (11)
- SingleForwardable (22)
-
Sync
_ m (12) - TSort (85)
- URI (22)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: Config (66) -
WEBrick
:: HTTPUtils (33)
オブジェクト
- ENV (227)
キーワード
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (9)
- << (11)
- <= (9)
- == (11)
- === (11)
- > (9)
- >= (9)
- BasicAuth (11)
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - CONFIG (22)
- ConfigMap (11)
- Converters (11)
- DBM (11)
-
DEFAULT
_ ENTITIES (11) -
DEFAULT
_ OPTIONS (22) - DefaultMimeTypes (11)
- DigestAuth (11)
- ENV (11)
- Enumerable (11)
- ExtensionFactory (11)
- FileHandler (11)
- FormData (11)
- GDBM (11)
- GW (11)
- GemPaths (11)
- GemVersions (11)
- General (11)
- Generic (11)
-
HTML
_ ENTITIES (11) - HTTP (11)
-
HTTP
_ STATUS (11) - HandlerTable (11)
- Hash (44)
- HeaderConverters (11)
- INSPECTORS (11)
- InvalidHashTupleKey (11)
- KeyError (11)
-
LEVEL
_ MAP (11) - LIMITS (11)
- Lazy (11)
-
MAKEFILE
_ CONFIG (11) -
MARSHAL
_ FIELDS (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Name (11)
- Numeric (11)
- OPS (11)
- OPT (11)
-
OPT
_ TABLE (11) - OptionParser (11)
-
PATH
_ SEPARATOR (11) - PStore (11)
- Policies (11)
- RHASH (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) - SDBM (11)
- SHA1 (11)
- SHA256 (11)
- SHA384 (11)
- SHA512 (11)
- SIZEOF (11)
-
SPECIFICATION
_ VERSION _ HISTORY (11) - SSL (11)
- Store (11)
-
TABLE
_ FOR _ ESCAPE _ HTML _ _ (11) - TSort (11)
- WIN32OLE (11)
- [] (55)
- []= (33)
-
_ httpdate (11) -
_ iso8601 (11) -
_ jisx0301 (11) -
_ parse (11) -
_ rfc2822 (11) -
_ rfc3339 (11) -
_ rfc822 (11) -
_ strptime (22) -
_ xmlschema (11) - abbrev (22)
-
add
_ attributes (11) -
add
_ class _ or _ module (22) -
add
_ element (11) -
add
_ specs (11) -
alias
_ map (6) - aliases (11)
- assoc (22)
- attributes (11)
- build (110)
- build2 (22)
-
build
_ self _ signed _ cert (11) -
cache
_ data (22) - cgi (11)
-
cgi
/ session (11) - classify (11)
- clear (11)
- clone (11)
- collect (24)
- command (11)
- command= (11)
- compact (13)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - conf (11)
- config (44)
- context (11)
- context= (11)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) -
create
_ ext _ from _ hash (11) -
create
_ extension (22) -
decode
_ www _ form (11) -
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)
-
digest
/ sha1 (11) -
digest
/ sha2 (11) - dump (22)
- dup (11)
- each (99)
-
each
_ key (22) -
each
_ pair (22) -
each
_ strongly _ connected _ component (21) -
each
_ strongly _ connected _ component _ from (21) -
each
_ value (22) - empty? (11)
- encode (33)
-
encode
_ www _ form (11) - entities (11)
- eql? (55)
- equal? (11)
- except (8)
- exec (44)
- fetch (99)
-
fetch
_ path (11) -
fetch
_ values (18) - files (11)
- filter (57)
- filter! (24)
-
find
_ gems (11) - flatten (11)
- foreach (11)
-
form
_ data= (11) - format (11)
-
from
_ state (11) - generate (22)
-
generate
_ line (11) - getopts (55)
-
group
_ by (22) - gsub (44)
- gsub! (44)
-
handle
_ interrupt (11) -
has
_ key? (11) -
has
_ value? (11) -
hash
_ old (11) - header (33)
- include? (11)
- index (7)
- inspect (33)
- instance (22)
-
instance
_ delegate (11) - intersection (5)
- invert (55)
- invoke (11)
-
irb
/ completion (11) -
is
_ a? (11) -
json
_ create (143) -
keep
_ if (44) - key (18)
- key? (11)
- keys (11)
-
kind
_ of? (11) -
latest
_ cache _ data (11) -
latest
_ gc _ info (22) -
latest
_ specs (11) - length (11)
- list (11)
-
load
_ mime _ types (11) - map (24)
-
mark
_ hashentry (11) - match (11)
- member? (11)
- merge (22)
- merge! (22)
- modifiable (11)
-
named
_ captures (22) - namespaces (11)
- new (173)
- numhash (11)
- open (44)
-
open
_ uri (22) - optparse (11)
- out (11)
- owner (11)
- params (11)
- params= (11)
- parse (44)
-
parse
_ header (11) -
parse
_ line (11) -
peek
_ result (11) - pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - popen (154)
-
post
_ form (11) - pp (11)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
primitive
_ convert (44) -
process
_ args (1) - query (11)
- rassoc (22)
-
raw
_ data (11) -
rb
_ f _ hash (11) -
rb
_ mark _ hash (11) - rdoc (11)
- read (33)
-
read
_ all (22) -
read
_ cache _ data (11) - readlines (11)
- receiver (7)
- rehash (51)
- reject (88)
- reject! (22)
- replace (66)
- reset (7)
-
reset
_ cache _ for (11) - restore (44)
- result (18)
-
result
_ with _ hash (7) -
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / ultralightparser (11) -
rm
_ f (11) -
rm
_ rf (11) - root? (11)
- roots (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (10) -
ruby2
_ keywords _ hash? (5) -
safe
_ load (17) - select (55)
- select! (44)
- set (11)
-
set
_ cache _ data (11) -
set
_ form _ data (11) -
set
_ params (11) -
setup
_ params (11) - shift (11)
-
show
_ hash (11) -
single
_ delegate (11) - size (11)
- slice (13)
- spawn (44)
-
spec
_ predecessors (11) -
specific
_ extra _ args _ hash (11) - specs (11)
- sprintf (11)
- sprintf フォーマット (11)
-
ssl
_ params (11) -
st
_ copy (11) -
st
_ foreach (11) -
st
_ init _ table (11) -
st
_ init _ table _ with _ size (11) -
start
_ element (11) -
start
_ service (11) - starttls (22)
- stat (22)
-
stat
_ col (11) - store (11)
- strhash (11)
-
strip
_ hashes (11) -
strongly
_ connected _ components (11) - sub (33)
- sub! (33)
-
sync
_ sh _ locker (6) -
sync
_ sh _ locker= (6) - system (44)
- table (11)
-
tag
_ start (11) - take (22)
- tally (8)
-
to
_ a (22) -
to
_ csv (11) -
to
_ h (123) -
to
_ hash (110) -
to
_ json (231) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ proc (9) -
to
_ s (44) -
transform
_ keys (18) -
transform
_ keys! (18) -
transform
_ values (16) -
transform
_ values! (16) -
try
_ convert (11) -
try
_ do (22) - tsort (22)
-
tsort
_ each (21) -
type
_ params (11) - uname (11)
- union (6)
-
unmatched
_ alias _ lists (11) -
unmatched
_ alias _ lists= (11) - unparse (11)
- update (44)
- value (11)
- value? (11)
- values (11)
-
values
_ at (11) -
verify
_ compaction _ references (5) -
webrick
/ cgi (11) -
with
_ defaults (11) - write (22)
- xmlrpc (3)
- xsystem (11)
- yaml (11)
- | (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
検索結果
先頭5件
-
Hash
# hash -> Integer (27113.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Gem
:: ConfigFile # hash -> Hash (18202.0) -
設定ファイルの各項目のキーと値を要素として持つハッシュです。
設定ファイルの各項目のキーと値を要素として持つハッシュです。 -
Object
# hash -> Integer (18195.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 (18125.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 (18125.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 (18125.0) -
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
...self のハッシュ値を返します。
eql? で等しい文字列は、常にハッシュ値も等しくなります。
//emlist[例][ruby]{
"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
//}
@see Hash... -
Float
# hash -> Integer (18119.0) -
ハッシュ値を返します。
...ハッシュ値を返します。
//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415
pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//}... -
Matrix
# hash -> Integer (18117.0) -
行列のHash値を返します。
...行列のHash値を返します。... -
Method
# hash -> Integer (18113.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 (18113.0) -
始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
...始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
//emlist[例][ruby]{
p (1..2).hash # => 5646
p (1...2).hash # => 16782863
//}...