Class: Formalist::Form::DefinitionContext Private
- Inherits:
-
Object
- Object
- Formalist::Form::DefinitionContext
- Includes:
- Definition
- Defined in:
- lib/formalist/form/definition_context.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #elements ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ DefinitionContext
constructor
private
A new instance of DefinitionContext.
Methods included from Definition
#attr, #component, #field, #group, #many, #section
Constructor Details
#initialize {|_self| ... } ⇒ DefinitionContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DefinitionContext.
9 10 11 12 |
# File 'lib/formalist/form/definition_context.rb', line 9 def initialize(&block) @elements = [] yield(self) end |
Instance Attribute Details
#elements ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/formalist/form/definition_context.rb', line 7 def elements @elements end |