class Shaped::Shapes::Equality

Public Class Methods

new(shape_description) click to toggle source
# File lib/shaped/shapes/equality.rb, line 4
def initialize(shape_description)
  @expected_value = shape_description
end

Public Instance Methods

matched_by?(object) click to toggle source
# File lib/shaped/shapes/equality.rb, line 8
def matched_by?(object)
  object == @expected_value
end
to_s() click to toggle source
# File lib/shaped/shapes/equality.rb, line 12
def to_s
  @expected_value.inspect
end