Class: BarOfProgress::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/bar-of-progress.rb

Instance Method Summary collapse

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, options)
  @complete = complete
  @partial = partial
  @options = options
end

Instance Method Details

#to_sObject



61
62
63
# File 'lib/bar-of-progress.rb', line 61

def to_s
  "#{left_bracket}#{complete}#{partial}#{incomplete}#{right_bracket}"
end