Class: Formidable::Elements::Submit
- Inherits:
-
Input
- Object
- BasicElement
- Element
- Input
- Formidable::Elements::Submit
- 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(value = "Submit", attributes = Hash.new) ⇒ Submit
constructor
A new instance of Submit.
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(value = "Submit", attributes = Hash.new) ⇒ Submit
Returns a new instance of Submit.
196 197 198 |
# File 'lib/formidable/elements.rb', line 196 def initialize(value = "Submit", attributes = Hash.new) super(nil, attributes.merge(value: value, type: "submit")) end |