Class: Spark::Input::Checkbox
- Inherits:
-
Base
- Object
- ActionView::Component::Base
- Component::Base
- Base
- Spark::Input::Checkbox
- Defined in:
- app/components/spark/input/checkbox.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Checkbox
constructor
A new instance of Checkbox.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ Checkbox
Returns a new instance of Checkbox.
6 7 8 9 10 11 |
# File 'app/components/spark/input/checkbox.rb', line 6 def initialize(*) super tag_attrs.add attr_hash(:checked) tag_attrs.add type: :checkbox end |