Class: Formalist::Form::DefinitionContext Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Yields:

  • (_self)

Yield Parameters:



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