Module: Kernel

Defined in:
lib/quarry/grammar/expect.rb

Instance Method Summary collapse

Instance Method Details

#equate?(actual) ⇒ Boolean

Broad equality.

Returns:

  • (Boolean)


105
106
107
108
109
110
# File 'lib/quarry/grammar/expect.rb', line 105

def equate?(actual)
  self.equal?(actual) ||
  self.eql?(actual)   ||
  self == actual      ||
  self === actual
end