Class: Shoehorn::Components::ProgressBar
- Defined in:
- lib/shoehorn/components/progress_bar.rb
Instance Attribute Summary collapse
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(width, options = {}) ⇒ ProgressBar
constructor
A new instance of ProgressBar.
- #to_s ⇒ Object
Constructor Details
#initialize(width, options = {}) ⇒ ProgressBar
Returns a new instance of ProgressBar.
5 6 7 8 |
# File 'lib/shoehorn/components/progress_bar.rb', line 5 def initialize(width, = {}) super @width = width end |
Instance Attribute Details
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/shoehorn/components/progress_bar.rb', line 3 def width @width end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 |
# File 'lib/shoehorn/components/progress_bar.rb', line 10 def to_s output_buffer << content_tag(:div, ) do .html_safe end.html_safe super end |