Class: Protos::Timeline::Item

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/timeline/item.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

DOCS: The item of a timeline. Usually containing a center, left and right and depending on its position in the list, an hr at the beginning or end.



10
11
12
# File 'lib/protos/timeline/item.rb', line 10

def view_template(&)
  li(**attrs, &)
end