Class: Satis::Input::Element

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/satis/input/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#classesObject (readonly)

Returns the value of attribute classes.



6
7
8
# File 'app/components/satis/input/component.rb', line 6

def classes
  @classes
end