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
Instance Method Details
#actions ⇒ Object
19
|
# File 'lib/protos/stats.rb', line 19
def actions(...) = render Actions.new(...)
|
#description ⇒ Object
21
|
# File 'lib/protos/stats.rb', line 21
def description(...) = render Description.new(...)
|
23
|
# File 'lib/protos/stats.rb', line 23
def figure(...) = render Figure.new(...)
|
#stat ⇒ Object
25
|
# File 'lib/protos/stats.rb', line 25
def stat(...) = render Stat.new(...)
|
#title ⇒ Object
27
|
# File 'lib/protos/stats.rb', line 27
def title(...) = render Title.new(...)
|
#value ⇒ Object
29
|
# File 'lib/protos/stats.rb', line 29
def value(...) = render Value.new(...)
|
#view_template ⇒ Object
15
16
17
|
# File 'lib/protos/stats.rb', line 15
def view_template(&)
div(**attrs, &)
end
|