1660件ヒット
[1-100件を表示]
(0.126秒)
種類
- インスタンスメソッド (1372)
- 特異メソッド (200)
- モジュール関数 (88)
ライブラリ
- ビルトイン (1262)
- base64 (11)
-
cgi
/ core (22) - coverage (6)
- csv (22)
- digest (22)
- fiddle (33)
- find (22)
- ipaddr (33)
- matrix (33)
- objspace (11)
- openssl (22)
- pathname (11)
- prime (22)
- rake (22)
-
rdoc
/ context (11) - readline (11)
-
rexml
/ document (11) -
rubygems
/ requirement (33) - set (7)
- uri (11)
-
webrick
/ httpauth (11) - zlib (11)
クラス
-
ARGF
. class (77) - Array (243)
- BasicObject (33)
- Bignum (9)
- Binding (11)
- CGI (22)
- CSV (22)
- Coverage (6)
- Data (4)
-
Digest
:: Base (22) - Enumerator (23)
-
Enumerator
:: ArithmeticSequence (6) - Exception (11)
-
Fiddle
:: Function (11) -
Fiddle
:: Pointer (22) - File (11)
- Fixnum (3)
- Float (11)
-
Gem
:: Requirement (33) - Hash (22)
- IPAddr (33)
- Integer (43)
- Matrix (33)
- Numeric (66)
- Object (11)
-
OpenSSL
:: BN (22) - Pathname (11)
- Prime (22)
- Proc (11)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
REXML
:: Instruction (11) -
Rake
:: FileList (22) - Range (65)
- Rational (11)
- Regexp (33)
-
RubyVM
:: InstructionSequence (22) - Set (7)
- String (250)
- Thread (11)
- Time (22)
-
URI
:: Generic (11) -
Zlib
:: GzipReader (11)
モジュール
- Base64 (11)
- Enumerable (198)
- Find (22)
- GC (22)
- Math (11)
- ObjectSpace (11)
- Process (11)
- Readline (11)
-
WEBrick
:: HTTPAuth (11)
キーワード
- != (11)
- % (11)
- === (69)
- =~ (11)
- [] (77)
- allbits? (7)
- asin (11)
- assoc (22)
-
basic
_ auth (11) - count (66)
- crypt (11)
- define (4)
- delete (11)
- detect (22)
- disasm (11)
- disassemble (11)
- div (11)
- divmod (22)
- downcase (8)
- each (55)
-
each
_ line (44) - empty (11)
- encode64 (11)
- eql? (47)
- equal? (11)
- find (44)
-
find
_ index (66) -
generate
_ prime (11) - getlocal (22)
- getrlimit (11)
- header (11)
- include? (45)
- index (33)
- instance (22)
- join (11)
-
latest
_ gc _ info (22) -
line
_ stub (6) - lineno= (11)
-
local
_ variable _ defined? (11) - lstat (11)
- max (58)
- member? (11)
-
memsize
_ of _ all (11) - min (116)
-
mod
_ inverse (11) - modulo (11)
- new (57)
- nobits? (7)
- out (11)
- pack (19)
-
pending
_ interrupt? (11) - produce (5)
- rassoc (22)
- readline (11)
- remainder (11)
- rindex (33)
-
satisfied
_ by? (11) - slice (66)
- split (17)
- sqrt (7)
- sum (11)
-
unicode
_ normalize! (10) - unpack (11)
- yield (11)
検索結果
先頭5件
-
IPAddr
# ==(ipaddr) -> bool (21212.0) -
IPAddr オブジェクト同士が等しいかを比較します。
...
IPAddr オブジェクト同士が等しいかを比較します。
@param ipaddr 比較対象の IPAddr オブジェクト。
また、数値や文字列も受け付けます。
例:
require "ipaddr"
p IPAddr.new("192.168.0.1") == IPAddr.new("192.168.0.1/24") # => false... -
URI
:: Generic # ==(uri) -> bool (21212.0) -
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。
...した URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。
@param uri 比較したい URI を URI オブジェクトで指定します。
例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('ht......tp://Example.Com/?hoge')
p u1 == u2 #=> true... -
Exception
# ==(other) -> bool (21140.0) -
自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。
...と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。......合は
Exception#exception を実行して変換を試みます。
//emlist[例][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e......ception { check_long_month(e) } }
p results.map { |e| e.class }
# => [RuntimeError, RuntimeError, RuntimeError]
p results.map { |e| e.message }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]
# class, message, backtrace が同一のため true になる
p results[0] == re... -
Rational
# ==(other) -> bool (21136.0) -
数値として等しいか判定します。
...@param other 自身と比較する数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
Rational(2, 3) == Rational(2, 3) # => true
Rational(5) == 5 # => true
Rational(0)......== 0.0 # => true
Rational('1/3') == 0.33 # => false
Rational('1/2') == '1/2' # => false
//}... -
String
# ==(other) -> bool (21130.0) -
other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
...String#eql? と同様に文字列の内容を比較します。
other が文字列でない場合、
other.to_str が定義されていれば
other == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false を返します。
@param other....../emlist[例][ruby]{
stringlike = Object.new
def stringlike.==(other)
"string" == other
end
p "string".eql?(stringlike) #=> false
p "string" == stringlike #=> false
def stringlike.to_str
raise
end
p "string".eql?(stringlike) #=> false
p "string" == stringlike #=> true
//}
@see String#e... -
Digest
:: Base # ==(md) -> bool (21120.0) -
与えられたダイジェストオブジェクトと比較します。
...します。
@param md 比較対象のダイジェストオブジェクト
require 'digest/md5'
digest1 = Digest::MD5.new
digest1.update("ruby")
digest2 = Digest::MD5.new
digest2.update("ruby")
p digest1 == digest2 # => true
digest2.update("R......UBY")
p digest1 == digest2 # => false... -
BasicObject
# ==(other) -> bool (21118.0) -
オブジェクトが other と等しければ真を、さもなくば偽を返します。
...オブジェクトの同一性になっています。
@param other 比較対象となるオブジェクト
@return other が self と同値であれば真、さもなくば偽
//emlist[例][ruby]{
class Person < BasicObject
def initialize(name, age)
@name = name
@age = age
end
end
ta......naka1 = Person.new("tanaka", 24)
tanaka2 = Person.new("tanaka", 24)
tanaka1 == tanaka1 #=> true
tanaka1 == tanaka2 #=> false
//}
@see BasicObject#equal?, Object#==, Object#equal?,
Object#eql?... -
Fiddle
:: Pointer # ==(other) -> bool (21118.0) -
ポインタの指すアドレスが同一ならばtrueを返します。
...タの指すアドレスが同一ならばtrueを返します。
@param other 比較対象の Pointer オブジェクト
例:
require 'fiddle'
s = 'abc'
cptr = Fiddle::Pointer[s]
cptr0 = Fiddle::Pointer[s]
cptr1 = cptr + 1
p cptr == cptr1 #=> false
p cptr == cptr0 #=> true... -
Integer
# ==(other) -> bool (21118.0) -
比較演算子。数値として等しいか判定します。
...比較演算子。数値として等しいか判定します。
@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}... -
Digest
:: Base # ==(str) -> bool (21115.0) -
与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
...与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
@param str 比較対象の hexdigest 文字列
require 'digest/md5'
digest = Digest::MD5.new
digest.update("ruby")
p digest == "58e53d1324eef6265fdb97b08ed9aadf" # =>...