Class: Protos::Stats

Inherits:
Component show all
Defined in:
lib/protos/stats.rb,
lib/protos/stats/stat.rb,
lib/protos/stats/title.rb,
lib/protos/stats/value.rb,
lib/protos/stats/figure.rb,
lib/protos/stats/actions.rb,
lib/protos/stats/description.rb

Defined Under Namespace

Classes: Actions, Description, Figure, Stat, Title, Value

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#actionsObject



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

def actions(...) = render Actions.new(...)

#descriptionObject



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

def description(...) = render Description.new(...)

#figureObject



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

def figure(...) = render Figure.new(...)

#statObject



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

def stat(...) = render Stat.new(...)

#titleObject



27
# File 'lib/protos/stats.rb', line 27

def title(...) = render Title.new(...)

#valueObject



29
# File 'lib/protos/stats.rb', line 29

def value(...) = render Value.new(...)

#view_templateObject



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

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