Class: Inspector::Constraints::Have::AtLeast
- Inherits:
-
Object
- Object
- Inspector::Constraints::Have::AtLeast
- 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
13 14 15 |
# File 'lib/inspector/constraints/have.rb', line 13 def compare(actual) actual >= @expected end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/inspector/constraints/have.rb', line 9 def to_s "have_at_least" end |