Class: BarOfProgress::Output
- Inherits:
-
Object
- Object
- BarOfProgress::Output
- Defined in:
- lib/bar-of-progress.rb
Instance Method Summary collapse
-
#initialize(complete, partial, options) ⇒ Output
constructor
A new instance of Output.
- #to_s ⇒ Object
Constructor Details
#initialize(complete, partial, options) ⇒ Output
Returns a new instance of Output.
52 53 54 55 56 |
# File 'lib/bar-of-progress.rb', line 52 def initialize(complete, partial, ) @complete = complete @partial = partial = end |
Instance Method Details
#to_s ⇒ Object
58 59 60 |
# File 'lib/bar-of-progress.rb', line 58 def to_s "#{left_bracket}#{complete}#{partial}#{incomplete}#{right_bracket}" end |