Class: Conquer::Dzen::Graphics::Circle
- Defined in:
- lib/conquer/dzen/graphics/circle.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#radius ⇒ Object
readonly
Returns the value of attribute radius.
Instance Method Summary collapse
-
#initialize(radius) ⇒ Circle
constructor
A new instance of Circle.
Methods inherited from Graphic
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
#radius ⇒ Object (readonly)
Returns the value of attribute radius.
7 8 9 |
# File 'lib/conquer/dzen/graphics/circle.rb', line 7 def radius @radius end |