Class: HungryForm::Elements::Html

Inherits:
Base::Element show all
Defined in:
lib/hungryform/elements/html.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Element

#attributes, #dependency, #label, #name, #placeholders, #resolver, #visible

Instance Method Summary collapse

Methods inherited from Base::Element

#configuration, #dependency_json

Methods included from Base::Hashable

included, #to_hash

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

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/hungryform/elements/html.rb', line 4

def value
  @value
end