Class: Resto::Validate::Length
- Inherits:
-
Object
- Object
- Resto::Validate::Length
- Includes:
- Resto::Validate
- Defined in:
- lib/resto/validate/length.rb
Instance Method Summary collapse
Methods included from Resto::Validate
#if, #initialize, #message, #unless, #validate?
Instance Method Details
#is(number) ⇒ Object
8 9 10 |
# File 'lib/resto/validate/length.rb', line 8 def is(number) tap { @number = number } end |