Method: Satis::ProgressBar::Component#initialize
- Defined in:
- app/components/satis/progress_bar/component.rb
#initialize(percentage, size: :default, label: false) ⇒ Component
Returns a new instance of Component.
8 9 10 11 12 13 |
# File 'app/components/satis/progress_bar/component.rb', line 8 def initialize(percentage, size: :default, label: false) super @percentage = percentage @size = size @label = label end |