Class: Satis::Input::Element
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Satis::Input::Element
- Defined in:
- app/components/satis/input/component.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
Instance Method Summary collapse
-
#initialize(classes: nil, colored: true) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(classes: nil, colored: true) ⇒ Element
Returns a new instance of Element.
8 9 10 11 |
# File 'app/components/satis/input/component.rb', line 8 def initialize(classes: nil, colored: true) @classes = classes || "" @classes += " colored" if colored end |
Instance Attribute Details
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
6 7 8 |
# File 'app/components/satis/input/component.rb', line 6 def classes @classes end |