Class: Conquer::Dzen::Graphics::Circle

Inherits:
Graphic
  • Object
show all
Defined in:
lib/conquer/dzen/graphics/circle.rb

Direct Known Subclasses

CircleOutline

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Graphic

#move, #to_s

Methods included from Positioning

#ignore_bg, #lock_x, #shift, #unlock_x

Constructor Details

#initialize(radius) ⇒ Circle

Returns a new instance of Circle.



9
10
11
12
13
14
# File 'lib/conquer/dzen/graphics/circle.rb', line 9

def initialize(radius)
  super()
  @radius = radius
  @template = '^c(%d)'
  @template_args = [radius]
end

Instance Attribute Details

#radiusObject (readonly)

Returns the value of attribute radius.



7
8
9
# File 'lib/conquer/dzen/graphics/circle.rb', line 7

def radius
  @radius
end