Class: Sukima::Constraints::Type
- Inherits:
-
Object
- Object
- Sukima::Constraints::Type
- Defined in:
- lib/sukima/constraints.rb
Instance Method Summary collapse
Instance Method Details
#call(type, value) ⇒ Object
19 20 21 |
# File 'lib/sukima/constraints.rb', line 19 def call(type, value) "should be #{type}" unless value.nil? || value.is_a?(type) end |