Class: Hexagonly::Space
- Inherits:
-
Object
- Object
- Hexagonly::Space
- Defined in:
- lib/hexagonly/space.rb
Instance Attribute Summary collapse
-
#center ⇒ Object
readonly
Returns the value of attribute center.
-
#east ⇒ Object
readonly
Returns the value of attribute east.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#north ⇒ Object
readonly
Returns the value of attribute north.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
-
#south ⇒ Object
readonly
Returns the value of attribute south.
-
#west ⇒ Object
readonly
Returns the value of attribute west.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(points) ⇒ Space
constructor
A new instance of Space.
Constructor Details
#initialize(points) ⇒ Space
Returns a new instance of Space.
7 8 9 10 |
# File 'lib/hexagonly/space.rb', line 7 def initialize(points) @points = points refresh end |
Instance Attribute Details
#center ⇒ Object (readonly)
Returns the value of attribute center.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def center @center end |
#east ⇒ Object (readonly)
Returns the value of attribute east.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def east @east end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def height @height end |
#north ⇒ Object (readonly)
Returns the value of attribute north.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def north @north end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def points @points end |
#south ⇒ Object (readonly)
Returns the value of attribute south.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def south @south end |
#west ⇒ Object (readonly)
Returns the value of attribute west.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def west @west end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
4 5 6 |
# File 'lib/hexagonly/space.rb', line 4 def width @width end |