Class: Formidable::Elements::Legend
- Inherits:
-
Element
- Object
- BasicElement
- Element
- Formidable::Elements::Legend
- 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(content, attributes = Hash.new) ⇒ Legend
constructor
A new instance of Legend.
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(content, attributes = Hash.new) ⇒ Legend
Returns a new instance of Legend.
229 230 231 232 |
# File 'lib/formidable/elements.rb', line 229 def initialize(content, attributes = Hash.new) self.content = content super(:legend, attributes) end |