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



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

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

#descriptionObject



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

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

#figureObject



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

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

#statObject



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

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

#titleObject



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

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

#valueObject



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

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

#view_templateObject

DOCS: Stats component that contains a collection of stats daisyui.com/components/stat/



8
9
10
# File 'lib/protos/stats.rb', line 8

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