Class: Spark::Input::Base
- Inherits:
-
Component::Base
- Object
- ActionView::Component::Base
- Component::Base
- Spark::Input::Base
- Defined in:
- app/components/spark/input/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'app/components/spark/input/base.rb', line 9 def initialize(*) super tag_attrs.add attr_hash(:value, :disabled, :required, :name) classname.add "spark-input" end |