Sha256: a5fd40aee422cfc3ef034fcc969f239aaf99b06a1982d230e5af4ff6b1f6bb6b
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
module Kernel # Broad equality. Checks to see if the object +x+ is in any # way equal to the reciever, starting with the identity # #equal?, then #eql?, then #==, and ending with #===. # # 1.like?(1.0) #=> true # "string".like?("string") #=> true # String.like?("string") #=> true # def like?(x) equal?(x) || eql?(x) || self == x || self === x end # @deprecated alias :equate? :like? end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | lib/core/facets/kernel/like.rb |
facets-3.1.0 | lib/core/facets/kernel/like.rb |