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.
59 60 61 62 63 |
# File 'lib/bar-of-progress.rb', line 59 def initialize(complete, partial, ) @complete = complete @partial = partial = end |
Instance Method Details
#to_s ⇒ Object
65 66 67 |
# File 'lib/bar-of-progress.rb', line 65 def to_s "#{left_bracket}#{complete}#{partial}#{incomplete}#{right_bracket}" end |