Class: Inspector::Constraints::Have::AtMost
- Inherits:
-
Object
- Object
- Inspector::Constraints::Have::AtMost
- 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
25 26 27 |
# File 'lib/inspector/constraints/have.rb', line 25 def compare(actual) actual <= @expected end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/inspector/constraints/have.rb', line 21 def to_s "have_at_most" end |