Class: Sukima::Constraints::In
- Inherits:
-
Object
- Object
- Sukima::Constraints::In
- Defined in:
- lib/sukima/constraints.rb
Instance Method Summary collapse
Instance Method Details
#call(range, value) ⇒ Object
25 26 27 |
# File 'lib/sukima/constraints.rb', line 25 def call(range, value) "should be in #{range}" unless range.include?(value) end |