Method: MailChess::Piece::King#initialize
- Defined in:
- lib/mail_chess/pieces/king.rb
#initialize(db, piece_id, board = nil) ⇒ King
Calls the superclass.
11 12 13 14 15 |
# File 'lib/mail_chess/pieces/king.rb', line 11 def initialize db, piece_id, board = nil super db, piece_id, board @html = @color == :white ? '♔' : '♚' end |