Class: WorkflowTemplate::Adapters::Validation::Generic::Object
- Inherits:
-
Validator
- Object
- Validator
- WorkflowTemplate::Adapters::Validation::Generic::Object
- Defined in:
- lib/workflow_template/adapters/validation/generic/object.rb
Instance Method Summary collapse
- #describe ⇒ Object
-
#initialize(object) ⇒ Object
constructor
A new instance of Object.
Methods inherited from Validator
Methods included from Validation::Adapter::Abstract::Validator
Constructor Details
#initialize(object) ⇒ Object
Returns a new instance of Object.
10 11 12 13 |
# File 'lib/workflow_template/adapters/validation/generic/object.rb', line 10 def initialize(object) @object = object super() end |
Instance Method Details
#describe ⇒ Object
15 16 17 |
# File 'lib/workflow_template/adapters/validation/generic/object.rb', line 15 def describe object.respond_to?(:describe) ? object.describe : super end |