3117件ヒット
[1-100件を表示]
(0.087秒)
種類
ライブラリ
- English (11)
- ビルトイン (1975)
- base64 (11)
- bigdecimal (44)
-
cgi
/ core (22) - continuation (11)
- coverage (6)
- csv (55)
- digest (22)
- fiddle (33)
- find (22)
- gdbm (11)
- ipaddr (33)
- matrix (99)
-
net
/ ftp (9) - nkf (11)
- objspace (11)
- openssl (55)
- pathname (11)
- prime (22)
- rake (22)
-
rdoc
/ context (11) - readline (11)
-
rexml
/ document (22) -
rinda
/ rinda (11) -
rubygems
/ requirement (44) -
rubygems
/ version (22) - sdbm (33)
- set (29)
- socket (66)
- strscan (11)
- thread (2)
- uri (11)
-
webrick
/ httpauth (11) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) - win32ole (22)
- zlib (11)
クラス
-
ARGF
. class (77) - Addrinfo (44)
- Array (309)
- BasicObject (44)
- BasicSocket (11)
- BigDecimal (44)
- Bignum (9)
- Binding (11)
- CGI (22)
- CSV (22)
-
CSV
:: Row (11) -
CSV
:: Table (22) - Coverage (6)
- Data (4)
-
Digest
:: Base (22) - Enumerator (23)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (96) - Exception (22)
-
Fiddle
:: Function (11) -
Fiddle
:: Pointer (22) - File (22)
- Fixnum (3)
- Float (11)
- GDBM (11)
-
Gem
:: Requirement (44) -
Gem
:: Version (22) - Hash (78)
- IPAddr (33)
- Integer (43)
- Matrix (99)
- Method (11)
-
Net
:: FTP :: MLSxEntry (9) - Numeric (66)
- Object (33)
-
OpenSSL
:: BN (22) -
OpenSSL
:: PKey :: EC :: Point (22) -
OpenSSL
:: SSL :: Session (11) - Pathname (11)
- Prime (22)
- Proc (11)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
REXML
:: Attribute (11) -
REXML
:: Instruction (11) -
Rake
:: FileList (22) - Range (79)
- Rational (11)
- Regexp (33)
-
Rinda
:: DRbObjectTemplate (11) -
RubyVM
:: InstructionSequence (44) - SDBM (33)
- Set (29)
- Socket (11)
- String (314)
- StringScanner (11)
- Symbol (22)
- Thread (11)
- Time (44)
-
URI
:: Generic (11) - UnboundMethod (11)
- WIN32OLE (11)
-
WIN32OLE
_ TYPE (11) -
Zlib
:: GzipReader (11)
モジュール
- Base64 (11)
- Enumerable (309)
- Find (22)
- GC (22)
- Kernel (11)
- Math (11)
- ObjectSpace (11)
- Process (11)
-
Process
:: GID (22) -
Process
:: UID (22) - Readline (11)
-
WEBrick
:: HTTPAuth (11)
オブジェクト
- ENV (66)
キーワード
- != (11)
-
$ CHILD _ STATUS (11) - % (11)
- +@ (9)
- -@ (9)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (91)
- =~ (11)
- ConditionVariable (11)
- Continuation (11)
- GID (11)
- Htdigest (11)
- Htpasswd (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
- Numeric (11)
- OPS (11)
- Requirement (11)
- Ruby用語集 (11)
- String (11)
- UID (11)
- Win32ネイティブ版Rubyの互換性問題 (11)
- [] (77)
-
_ _ id _ _ (11) - afamily (11)
- allbits? (7)
- asin (11)
- assoc (22)
-
backtrace
_ locations (11) -
basic
_ auth (11) - bigdecimal (11)
- chunk (11)
-
chunk
_ while (11) - collect (11)
- count (66)
- crypt (11)
- dedup (2)
-
default
_ event _ sources (11) - define (4)
- delete (11)
-
delete
_ if (88) - detect (22)
- disasm (22)
- disassemble (22)
- div (11)
- divide (22)
- divmod (22)
- downcase (8)
- dump (11)
- each (55)
-
each
_ line (44) -
each
_ pair (22) - eigen (11)
- eigensystem (11)
- empty (11)
- encode64 (11)
- eql? (80)
- equal? (11)
- fiddle (11)
-
fiddle
/ types (11) - file? (9)
- filter (12)
- filter! (12)
- find (44)
-
find
_ all (22) -
find
_ index (66) -
generate
_ prime (11) - getgm (11)
- getifaddrs (11)
- getlocal (22)
- getpeername (11)
- getrlimit (11)
- getutc (11)
- hash (44)
- header (11)
- id2name (11)
- include? (45)
- index (33)
- instance (22)
- intern (11)
- itself (11)
- join (11)
-
keep
_ if (22) -
latest
_ gc _ info (22) -
line
_ stub (6) - lineno= (11)
-
local
_ variable _ defined? (11) - lstat (22)
- lup (11)
-
lup
_ decomposition (11) - map (11)
- max (60)
- member? (11)
-
memsize
_ of _ all (11) - min (118)
- minmax (10)
-
mod
_ inverse (11) - modulo (11)
-
net
/ pop (11) - new (57)
- nobits? (7)
-
ole
_ func _ methods (11) - out (11)
- pack (19)
- pack テンプレート文字列 (11)
- partition (22)
-
pending
_ interrupt? (11) - pfamily (11)
- produce (5)
- protocol (11)
- rassoc (22)
-
rb
_ f _ require (11) - rdoc (11)
- readline (11)
- rect (11)
- rectangular (11)
- reject (44)
- reject! (55)
- remainder (11)
-
rinda
/ rinda (11) - rindex (33)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
satisfied
_ by? (11) - select (44)
- select! (22)
- sign (11)
- slice (66)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - socktype (11)
- split (17)
- sqrt (7)
- string (11)
- sum (11)
- switch (44)
-
to
_ s (11) -
to
_ sym (11) - tracer (11)
- tsort (11)
-
unicode
_ normalize! (10) - unpack (11)
-
webrick
/ cgi (11) - yield (11)
- 制御構造 (11)
- 演算子式 (11)
検索結果
先頭5件
-
IPAddr
# ==(ipaddr) -> bool (21206.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 (21206.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 (21134.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 (21130.0) -
数値として等しいか判定します。
...なければ 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
//}......でなければ 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 (21124.0) -
other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
...other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
other が文字列でない場合、
other.to_str が定義されていれば
other == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false....../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 (21113.0) -
与えられたダイジェストオブジェクトと比較します。
...ェストオブジェクト
require 'digest/md5'
digest1 = Digest::MD5.new
digest1.update("ruby")
digest2 = Digest::MD5.new
digest2.update("ruby")
p digest1 == digest2 # => true
digest2.update("RUBY")
p digest1 == digest2 # => false... -
BasicObject
# ==(other) -> bool (21112.0) -
オブジェクトが other と等しければ真を、さもなくば偽を返します。
...//emlist[例][ruby]{
class Person < BasicObject
def initialize(name, age)
@name = name
@age = age
end
end
tanaka1 = Person.new("tanaka", 24)
tanaka2 = Person.new("tanaka", 24)
tanaka1 == tanaka1 #=> true
tanaka1 == tanaka2 #=> false
//}
@see BasicObject#equal?, Object#==, Obje... -
Fiddle
:: Pointer # ==(other) -> bool (21112.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 (21112.0) -
比較演算子。数値として等しいか判定します。
...比較演算子。数値として等しいか判定します。
@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}... -
Digest
:: Base # ==(str) -> bool (21108.0) -
与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
...与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
@param str 比較対象の hexdigest 文字列
require 'digest/md5'
digest = Digest::MD5.new
digest.update("ruby")
p digest == "58e53d1324eef6265fdb97b08ed9aadf" # =>...