Class: Formidable::Elements::TextField
- Inherits:
-
Input
- Object
- BasicElement
- Element
- Input
- Formidable::Elements::TextField
- Defined in:
- lib/formidable/elements.rb
Constant Summary
Constants included from Coercions
Coercions::IncompatibleInterface, Coercions::MissingCoercion
Constants included from Rendering
Rendering::RendererNotAssigned
Instance Attribute Summary
Attributes inherited from BasicElement
#attributes, #cleaned_data, #content, #name, #raw_data, #tag
Attributes included from Rendering
Instance Method Summary collapse
-
#initialize(name, attributes = Hash.new, raw_data = nil) ⇒ TextField
constructor
A new instance of TextField.
Methods inherited from Input
Methods included from Coercions
#cleaned_data, #coerce, #coerce!, #coercions, coercions, included
Methods included from Validations
#errors, register_validation, #valid?, #validate, #validations
Methods included from Rendering
Constructor Details
#initialize(name, attributes = Hash.new, raw_data = nil) ⇒ TextField
Returns a new instance of TextField.
160 161 162 |
# File 'lib/formidable/elements.rb', line 160 def initialize(name, attributes = Hash.new, raw_data = nil) super(name, attributes.merge!(type: "text"), raw_data) end |