Class: HungryForm::Elements::Html
- Inherits:
-
Base::Element
- Object
- Base::Element
- HungryForm::Elements::Html
- Defined in:
- lib/hungryform/elements/html.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Base::Element
#attributes, #dependency, #label, #name, #placeholders, #resolver, #visible
Instance Method Summary collapse
-
#initialize(name, parent, resolver, attributes = {}, &block) ⇒ Html
constructor
A new instance of Html.
Methods inherited from Base::Element
#configuration, #dependency_json
Methods included from Base::Hashable
Constructor Details
#initialize(name, parent, resolver, attributes = {}, &block) ⇒ Html
Returns a new instance of Html.
7 8 9 10 |
# File 'lib/hungryform/elements/html.rb', line 7 def initialize(name, parent, resolver, attributes = {}, &block) super self.value = @attributes.delete(:value) || '' end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/hungryform/elements/html.rb', line 4 def value @value end |