Class: Hokusai::Commands::Circle
- Defined in:
- ui/src/hokusai/commands/circle.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#outline ⇒ Object
Returns the value of attribute outline.
-
#outline_color ⇒ Object
Returns the value of attribute outline_color.
-
#radius ⇒ Object
readonly
Returns the value of attribute radius.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(x, y, radius) ⇒ Circle
constructor
A new instance of Circle.
Methods inherited from Base
#after_draw, draw, #draw, on_draw
Constructor Details
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def color @color end |
#outline ⇒ Object
Returns the value of attribute outline.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def outline @outline end |
#outline_color ⇒ Object
Returns the value of attribute outline_color.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def outline_color @outline_color end |
#radius ⇒ Object (readonly)
Returns the value of attribute radius.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def radius @radius end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
3 4 5 |
# File 'ui/src/hokusai/commands/circle.rb', line 3 def y @y end |
Instance Method Details
#hash ⇒ Object
15 16 17 |
# File 'ui/src/hokusai/commands/circle.rb', line 15 def hash [self.class, x, y, radius, color.hash, outline_color.hash, outline].hash end |