Class: Conquer::Dzen::Graphics::Battery
- Inherits:
-
ProgressBar
- Object
- Graphic
- ProgressBar
- Conquer::Dzen::Graphics::Battery
- Defined in:
- lib/conquer/dzen/graphics/battery.rb
Instance Attribute Summary
Attributes inherited from ProgressBar
#height, #orientation, #progress, #width
Instance Method Summary collapse
-
#initialize(percentage, width, height, orientation = :horizontal) ⇒ Battery
constructor
A new instance of Battery.
Methods inherited from Graphic
Methods included from Positioning
#ignore_bg, #lock_x, #shift, #unlock_x
Constructor Details
#initialize(percentage, width, height, orientation = :horizontal) ⇒ Battery
Returns a new instance of Battery.
8 9 10 11 12 |
# File 'lib/conquer/dzen/graphics/battery.rb', line 8 def initialize(percentage, width, height, orientation = :horizontal) super @template << '%s' @template_args = [outline, fill, plus_pole] end |