Module: Bootstrap4RailsComponents::Bootstrap::Utilities::Progressable
- Included in:
- Components::Progress, Components::ProgressBar
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb
Overview
Shared methods between Progress & ProgressBar.
Instance Method Summary collapse
Instance Method Details
#animated ⇒ Object
8 9 10 |
# File 'lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb', line 8 def animated .fetch(:animated, false) end |
#label ⇒ Object
12 13 14 15 |
# File 'lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb', line 12 def label # options.fetch(:label, nil) [:label] == true ? "#{progress}%" : [:label] || body end |
#progress ⇒ Object
17 18 19 |
# File 'lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb', line 17 def progress [:progress] || 0 end |
#striped ⇒ Object
21 22 23 |
# File 'lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb', line 21 def striped .fetch(:striped, false) end |
#theme ⇒ Object
25 26 27 |
# File 'lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb', line 25 def theme .fetch(:theme, nil) end |