Class: NullSpace
- Inherits:
-
EmptySpace
- Object
- EmptySpace
- NullSpace
- Defined in:
- lib/space.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
Attributes inherited from EmptySpace
Instance Method Summary collapse
-
#initialize ⇒ NullSpace
constructor
A new instance of NullSpace.
- #place_on(board) ⇒ Object
- #to_coord ⇒ Object
Methods inherited from EmptySpace
#empty?, #enemy_of?, #friend_of?, #remove_from, #to_s
Constructor Details
#initialize ⇒ NullSpace
Returns a new instance of NullSpace.
41 42 |
# File 'lib/space.rb', line 41 def initialize end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
40 41 42 |
# File 'lib/space.rb', line 40 def direction @direction end |
Instance Method Details
#place_on(board) ⇒ Object
48 49 |
# File 'lib/space.rb', line 48 def place_on(board) end |
#to_coord ⇒ Object
44 45 46 |
# File 'lib/space.rb', line 44 def to_coord [nil, nil] end |