module Kernel
Public Instance Methods
boolean?()
click to toggle source
# File lib/assay/core_ext/kernel.rb, line 48 def boolean? true? || false? end
false?()
click to toggle source
# File lib/assay/core_ext/kernel.rb, line 43 def false? FalseClass === self end
identical?(other)
click to toggle source
Do two references have the same ‘#object_id`, and hence are the same object.
@param [Object] other
Any object reference.
# File lib/assay/core_ext/kernel.rb, line 9 def identical?(other) object_id == other.object_id end
like?(other)
click to toggle source
Ascertain likeness, returns true if any of ‘equal?`, `eql?`, `==`, `===` or `=~` evaluate truthfully, either with `self` as the receiver or `other` as the receiver.
@todo Should ‘#=~` be apart of this comparison?
@param [Object] other
Any object reference.
@return [Boolean] true
if alike.
# File lib/assay/core_ext/kernel.rb, line 24 def like?(other) self.equal?(other) || self.eql?(other) || self.==(other) || self.===(other) || self.=~(other) || other.equal?(self) || other.eql?(self) || other.==(self) || other.===(self) || other.=~(self) end
true?()
click to toggle source
# File lib/assay/core_ext/kernel.rb, line 38 def true? TrueClass === self end