Class: Tchae::Validator1
Overview
same as Validator but with Arity 1 execution semantics
Instance Attribute Summary
Attributes inherited from Validator
Instance Method Summary collapse
Methods inherited from Validator
#initialize, #return_error, #valid_or_raise_exception, #valid_or_return_error, #wrapped_result_or_error
Constructor Details
This class inherits a constructor from Tchae::Validator
Instance Method Details
#execute(input) ⇒ Object
147 148 149 |
# File 'lib/tchae/core.rb', line 147 def execute(input) @proc.call(input) end |