Class: Protos::Timeline

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

Defined Under Namespace

Classes: Center, Item, Left, Right

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#center ⇒ Object



23
# File 'lib/protos/timeline.rb', line 23

def center(...) = render Center.new(...)

#item ⇒ Object



19
# File 'lib/protos/timeline.rb', line 19

def item(...) = render Item.new(...)

#left ⇒ Object



21
# File 'lib/protos/timeline.rb', line 21

def left(...) = render Left.new(...)

#right ⇒ Object



25
# File 'lib/protos/timeline.rb', line 25

def right(...) = render Right.new(...)

#view_template ⇒ Object



15
16
17
# File 'lib/protos/timeline.rb', line 15

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