class WhiteKing
Attributes
start[R]
Public Class Methods
new(x,y)
click to toggle source
Calls superclass method
WhitePiece::new
# File lib/king.rb, line 81 def initialize(x,y) super @start = true @direction = 1 end
Public Instance Methods
to_s()
click to toggle source
# File lib/king.rb, line 87 def to_s "W!" end