Class: BettyNiñoO
Overview
Special case: O needs its own initialize
Instance Attribute Summary
Attributes inherited from BettyNiño
Instance Method Summary collapse
-
#initialize(board) ⇒ BettyNiñoO
constructor
A new instance of BettyNiñoO.
- #rotate! ⇒ Object
Methods inherited from BettyNiño
#display, #draw, #ghost, #move!, #niños, #slide!, #valid?
Constructor Details
#initialize(board) ⇒ BettyNiñoO
Returns a new instance of BettyNiñoO.
215 216 217 |
# File 'lib/pieces.rb', line 215 def initialize(board) super(board, :O) end |
Instance Method Details
#rotate! ⇒ Object
194 195 196 |
# File 'lib/pieces.rb', line 194 def rotate!(*) # No-op for O piece end |