Class: Formidable::Elements::TextArea
- Inherits:
-
Element
- Object
- BasicElement
- Element
- Formidable::Elements::TextArea
- 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(*args, &block) ⇒ TextArea
constructor
A new instance of TextArea.
- #raw_data=(raw_data) ⇒ Object
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(*args, &block) ⇒ TextArea
Returns a new instance of TextArea.
172 173 174 |
# File 'lib/formidable/elements.rb', line 172 def initialize(*args, &block) super(:textarea, *args, &block) end |
Instance Method Details
#raw_data=(raw_data) ⇒ Object
176 177 178 |
# File 'lib/formidable/elements.rb', line 176 def raw_data=(raw_data) @raw_data = self.content = raw_data end |