Class: Inspector::Constraints::Have::Exactly

Inherits:
Object
  • Object
show all
Includes:
Inspector::Constraints::Have
Defined in:
lib/inspector/constraints/have.rb

Instance Method Summary collapse

Methods included from Inspector::Constraints::Have

#initialize, #inspect, #method_missing, #valid?

Methods included from Inspector::Constraint

#negate!, #positive?, #validator

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Inspector::Constraints::Have

Instance Method Details

#compare(actual) ⇒ Object



37
38
39
# File 'lib/inspector/constraints/have.rb', line 37

def compare(actual)
  actual == @expected
end

#to_sObject



33
34
35
# File 'lib/inspector/constraints/have.rb', line 33

def to_s
  "have_exactly"
end