Class: PBatcher::Validator
- Inherits:
-
ProcHandler
- Object
- Handler
- ProcHandler
- PBatcher::Validator
- Defined in:
- lib/pbatcher/validator.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Attributes inherited from Handler
Instance Method Summary collapse
Methods inherited from ProcHandler
Methods inherited from Handler
Constructor Details
This class inherits a constructor from PBatcher::ProcHandler
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/pbatcher/validator.rb', line 3 def method @method end |
Instance Method Details
#valid?(result) ⇒ Boolean
5 6 7 |
# File 'lib/pbatcher/validator.rb', line 5 def valid?(result) !!method.call(result) end |