Class: Formalist::Form::Definition::Section
- Inherits:
-
Object
- Object
- Formalist::Form::Definition::Section
- Defined in:
- lib/formalist/form/definition/section.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #call(input, rules, errors) ⇒ Object
-
#initialize(name, config = {}, children = []) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(name, config = {}, children = []) ⇒ Section
Returns a new instance of Section.
11 12 13 14 15 |
# File 'lib/formalist/form/definition/section.rb', line 11 def initialize(name, config = {}, children = []) @name = name @config = config @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
9 10 11 |
# File 'lib/formalist/form/definition/section.rb', line 9 def children @children end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/formalist/form/definition/section.rb', line 8 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/formalist/form/definition/section.rb', line 7 def name @name end |