Class: Amaze::Shape
- Inherits:
-
Object
- Object
- Amaze::Shape
- Defined in:
- lib/amaze/shape.rb
Defined Under Namespace
Classes: Diamond, Hexagon, Star, Triangle
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
The size of the shape, usually the rows.
Instance Method Summary collapse
- #create_mask ⇒ Object
-
#initialize(size) ⇒ Shape
constructor
A new instance of Shape.
- #mask ⇒ Object
Constructor Details
#initialize(size) ⇒ Shape
Returns a new instance of Shape.
11 12 13 |
# File 'lib/amaze/shape.rb', line 11 def initialize size @size = size end |
Instance Attribute Details
#size ⇒ Object (readonly)
The size of the shape, usually the rows
9 10 11 |
# File 'lib/amaze/shape.rb', line 9 def size @size end |