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