Class: AblyUi::Core::Slider::Slide
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::Slider::Slide
- Defined in:
- lib/ably_ui/core/slider/slider.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: '') ⇒ Slide
constructor
A new instance of Slide.
Constructor Details
#initialize(classes: '') ⇒ Slide
Returns a new instance of Slide.
26 27 28 |
# File 'lib/ably_ui/core/slider/slider.rb', line 26 def initialize(classes: '') @classes = classes end |
Instance Attribute Details
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
24 25 26 |
# File 'lib/ably_ui/core/slider/slider.rb', line 24 def classes @classes end |
Instance Method Details
#call ⇒ Object
30 31 32 33 34 |
# File 'lib/ably_ui/core/slider/slider.rb', line 30 def call tag.li class: classes, data: { id: 'slider-slide' } do content end end |