2359件ヒット
[1-100件を表示]
(0.121秒)
別のキーワード
ライブラリ
- ビルトイン (1237)
- abbrev (11)
-
cgi
/ core (44) -
cgi
/ session / pstore (11) - csv (22)
- dbm (44)
- erb (7)
- gdbm (44)
- ipaddr (11)
-
json
/ add / complex (11) -
json
/ add / exception (11) -
json
/ add / ostruct (11) -
json
/ add / regexp (11) -
minitest
/ unit (1) - mkmf (33)
-
net
/ http (66) -
net
/ imap (22) - open-uri (11)
- openssl (77)
- optparse (33)
- ostruct (54)
- pathname (11)
- pstore (66)
- rake (22)
-
rdoc
/ context (11) -
rdoc
/ text (11) -
rdoc
/ top _ level (11) -
rexml
/ document (22) -
rinda
/ rinda (44) -
rinda
/ tuplespace (55) -
rubygems
/ command (22) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (11) -
rubygems
/ spec _ fetcher (22) - sdbm (44)
- set (11)
-
shell
/ command-processor (6) - tsort (64)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (44) -
webrick
/ httpresponse (22) -
yaml
/ dbm (22)
クラス
- Array (35)
- CGI (22)
-
CGI
:: Session :: PStore (11) -
CSV
:: Table (22) - Complex (11)
- DBM (44)
- Data (2)
- ERB (7)
-
Encoding
:: Converter (44) - Exception (11)
- GDBM (44)
-
Gem
:: Command (22) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (11) -
Gem
:: SpecFetcher (22) - Hash (733)
- IPAddr (11)
- KeyError (14)
- MatchData (11)
- Method (11)
-
MiniTest
:: Unit (1) -
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
:: Context (11) -
RDoc
:: Options (11) -
RDoc
:: TopLevel (11) -
REXML
:: Attributes (11) -
REXML
:: DocType (11) -
Rake
:: TaskArguments (22) - Range (11)
- Regexp (33)
-
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (44) -
Rinda
:: TupleSpaceProxy (44) - SDBM (44)
- Set (11)
-
Shell
:: CommandProcessor (6) - String (209)
- Struct (11)
- UnboundMethod (11)
-
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (44) -
WEBrick
:: HTTPResponse (22) -
YAML
:: DBM (22)
モジュール
-
CGI
:: QueryExtension (22) - Enumerable (52)
- Kernel (33)
-
Net
:: HTTPHeader (66) -
OpenURI
:: Meta (11) -
OptionParser
:: Arguable (11) -
RDoc
:: Text (11) - TSort (64)
キーワード
- % (11)
- [] (22)
- []= (33)
- abbrev (11)
-
add
_ class _ or _ module (22) -
add
_ specs (11) - attributes (11)
- classify (11)
- clear (11)
- clone (11)
- collect (24)
- compact (8)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - config (11)
-
create
_ ext _ from _ hash (11) -
create
_ extension (22) - default (22)
- default= (11)
-
default
_ proc (11) -
default
_ proc= (11) - delete (33)
-
delete
_ if (22) - dig (9)
- dup (11)
- each (44)
-
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? (44)
- equal? (11)
- except (3)
- fetch (99)
-
fetch
_ path (11) -
find
_ gems (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)
- invert (44)
-
is
_ a? (11) -
keep
_ if (22) - key (18)
- key? (11)
- keys (11)
-
kind
_ of? (11) -
latest
_ specs (11) - map (24)
- member? (11)
- merge (22)
- merge! (22)
- modifiable (11)
-
named
_ captures (22) - namespaces (11)
- out (11)
- params (11)
- params= (11)
-
primitive
_ convert (44) -
process
_ args (1) - query (11)
- read (22)
-
read
_ all (22) - receiver (7)
- rehash (17)
- reject (22)
- reject! (22)
- replace (55)
- restore (11)
- result (7)
- root? (11)
- roots (11)
-
ruby2
_ keywords (5) - select (11)
- select! (10)
-
set
_ form _ data (11) -
set
_ params (11) - shift (11)
-
show
_ hash (11) -
spec
_ predecessors (11) - specs (11)
- starttls (22)
- store (11)
-
strip
_ hashes (11) -
strongly
_ connected _ components (11) - sub (33)
- sub! (33)
- take (22)
- tally (6)
-
to
_ a (11) -
to
_ csv (11) -
to
_ h (40) -
to
_ hash (44) -
to
_ json (44) -
to
_ proc (9) -
to
_ s (33) -
try
_ do (22) - tsort (11)
-
type
_ params (11) - update (44)
- value (11)
- value? (11)
- values (11)
-
values
_ at (11) - write (22)
- xsystem (11)
検索結果
先頭5件
-
Hash
# hash -> Integer (27126.0) -
自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。 自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
...自身が保持するキーと値のハッシュ値を元にして算出した整数を返します。
自身が保持するキーや値が変化すればこのメソッドが返す値も変化します。
//emlist[例][ruby]{
a = {}
p a.hash #=> 0
a[1] = :x
p a.hash #=> 329543
//}... -
Proc
# hash -> Integer (21126.0) -
self のハッシュ値を返します。
...self のハッシュ値を返します。
Proc オブジェクトの引数の情報を返します。
Proc オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に対応した以......emlist[][ruby]{
prc = proc{|x, y=42, *other|}
p prc.parameters # => x], [:opt, :y], [:rest, :other
prc = lambda{|x, y=42, *other|}
p prc.parameters # => x], [:opt, :y], [:rest, :other
prc = proc{|x, y=42, *other|}
p prc.parameters(lambda: true) # => x], [:opt, :y], [:rest, :other
prc = lambda{|x,......y=42, *other|}
p prc.parameters(lambda: false) # => x], [:opt, :y], [:rest, :other
//}... -
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) -
ハッシュ値を返します。
ハッシュ値を返します。 -
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
//}...