2049件ヒット
[1-100件を表示]
(0.089秒)
別のキーワード
ライブラリ
- ビルトイン (1702)
- bigdecimal (48)
-
cgi
/ core (12) - csv (36)
- digest (24)
- matrix (72)
- openssl (12)
- pathname (12)
- prime (24)
- rake (12)
-
rubygems
/ requirement (36) -
rubygems
/ version (12) - set (23)
- strscan (12)
- win32ole (12)
クラス
- Array (339)
- BasicObject (48)
- BigDecimal (48)
- Binding (12)
- CGI (12)
-
CSV
:: Row (12) -
CSV
:: Table (24) -
Digest
:: Base (24) -
Enumerator
:: Lazy (105) - Exception (24)
- File (12)
- Float (12)
-
Gem
:: Requirement (36) -
Gem
:: Version (12) - Hash (86)
- Integer (40)
- Matrix (72)
- Method (12)
- Numeric (72)
- Object (48)
-
OpenSSL
:: BN (12) - Pathname (12)
- Prime (24)
- Proc (12)
-
Rake
:: FileList (12) - Range (87)
- Rational (12)
- Regexp (36)
-
RubyVM
:: InstructionSequence (24) - Set (32)
- String (314)
- StringScanner (12)
- Time (48)
- UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (338)
キーワード
- != (12)
- % (12)
- +@ (10)
- -@ (10)
- === (72)
- =~ (12)
- [] (72)
-
_ _ id _ _ (12) - allbits? (8)
- assoc (24)
-
backtrace
_ locations (12) - chunk (12)
-
chunk
_ while (12) - clone (12)
- collect (12)
- count (72)
- crypt (12)
- dedup (3)
-
default
_ event _ sources (12) - delete (12)
-
delete
_ if (60) - detect (24)
- disasm (12)
- disassemble (12)
- div (12)
- divide (24)
- divmod (24)
- downcase (9)
- dump (12)
- each (24)
- eigen (12)
- eigensystem (12)
- eql? (48)
- equal? (12)
- filter (14)
- filter! (14)
- find (24)
-
find
_ all (24) -
find
_ index (72) - getgm (12)
- getlocal (24)
- getutc (12)
- hash (48)
- header (12)
- include? (37)
- index (36)
- intern (12)
- itself (12)
- join (12)
-
keep
_ if (24) -
local
_ variable _ defined? (12) - lstat (12)
- lup (12)
-
lup
_ decomposition (12) - map (12)
- max (66)
- member? (12)
- min (130)
- minmax (12)
-
mod
_ inverse (12) - modulo (12)
- nobits? (8)
- pack (21)
- partition (24)
- rassoc (24)
- rect (12)
- rectangular (12)
- reject (48)
- reject! (24)
- remainder (12)
- rindex (36)
-
satisfied
_ by? (12) - select (24)
- select! (24)
- sign (12)
- slice (72)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - split (19)
- string (12)
- sum (12)
-
to
_ sym (12) -
unicode
_ normalize! (11) - unpack (12)
- yield (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # disasm -> String (29107.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:......1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # disassemble -> String (29107.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...uts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:......1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
Exception
# ==(other) -> bool (21141.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 (21137.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
//}... -
Digest
:: Base # ==(md) -> bool (21133.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... -
String
# ==(other) -> bool (21131.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... -
BasicObject
# ==(other) -> bool (21119.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... -
Integer
# ==(other) -> bool (21119.0) -
比較演算子。数値として等しいか判定します。
...比較演算子。数値として等しいか判定します。
@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}... -
Digest
:: Base # ==(str) -> bool (21118.0) -
与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
...与えられた文字列を hexdigest 値と見て、自身の hexdigest 値と比較します。
@param str 比較対象の hexdigest 文字列
require 'digest/md5'
digest = Digest::MD5.new
digest.update("ruby")
p digest == "58e53d1324eef6265fdb97b08ed9aadf" # =>...