Class: Definition::Types::Lambda
- Defined in:
- lib/definition/types/lambda.rb
Defined Under Namespace
Classes: Conformer
Instance Attribute Summary collapse
-
#conformity_test_lambda ⇒ Object
Returns the value of attribute conformity_test_lambda.
Attributes inherited from Base
Instance Method Summary collapse
- #conform(value) ⇒ Object
- #error_renderer ⇒ Object
-
#initialize(name, context: {}, &conformity_test_lambda) ⇒ Lambda
constructor
A new instance of Lambda.
Methods inherited from Base
Constructor Details
#initialize(name, context: {}, &conformity_test_lambda) ⇒ Lambda
Returns a new instance of Lambda.
11 12 13 14 |
# File 'lib/definition/types/lambda.rb', line 11 def initialize(name, context: {}, &conformity_test_lambda) self.conformity_test_lambda = conformity_test_lambda super(name, context: context) end |
Instance Attribute Details
#conformity_test_lambda ⇒ Object
Returns the value of attribute conformity_test_lambda.
9 10 11 |
# File 'lib/definition/types/lambda.rb', line 9 def conformity_test_lambda @conformity_test_lambda end |
Instance Method Details
#conform(value) ⇒ Object
16 17 18 |
# File 'lib/definition/types/lambda.rb', line 16 def conform(value) Conformer.new(self).conform(value) end |
#error_renderer ⇒ Object
20 21 22 |
# File 'lib/definition/types/lambda.rb', line 20 def error_renderer ErrorRenderers::Lambda end |