Class: Formidable::Elements::TextArea

Inherits:
Element show all
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

#renderer

Instance Method Summary collapse

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

included, #render

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