Class: Rbar::Bars::Passing

Inherits:
BaseBar
  • Object
show all
Defined in:
lib/rbar/bars/passing.rb

Instance Attribute Summary

Attributes inherited from BaseBar

#count, #parent_bar, #progress_bar, #total

Instance Method Summary collapse

Methods inherited from BaseBar

#increment, #initialize, #progress, #register_self

Constructor Details

This class inherits a constructor from Rbar::Bars::BaseBar

Instance Method Details

#colorObject



11
12
13
# File 'lib/rbar/bars/passing.rb', line 11

def color
  Pastel.new.green(marker)
end

#formatObject



15
16
17
# File 'lib/rbar/bars/passing.rb', line 15

def format
  "Passed  [:bar :percent] :current/:total"
end