Class: ProgressBar::Components::Percentage
- Inherits:
-
Object
- Object
- ProgressBar::Components::Percentage
- Defined in:
- lib/ruby-progressbar/components/percentage.rb
Instance Attribute Summary collapse
-
#progress ⇒ Object
Returns the value of attribute progress.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Percentage
constructor
A new instance of Percentage.
Constructor Details
#initialize(options = {}) ⇒ Percentage
Returns a new instance of Percentage.
6 7 8 |
# File 'lib/ruby-progressbar/components/percentage.rb', line 6 def initialize( = {}) self.progress = [:progress] end |
Instance Attribute Details
#progress ⇒ Object
Returns the value of attribute progress.
4 5 6 |
# File 'lib/ruby-progressbar/components/percentage.rb', line 4 def progress @progress end |