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