Class: Xudoku::Formatter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/xudoku/formatter/base.rb

Overview

:nodoc:

Direct Known Subclasses

Array, JSON, String

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(board) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/xudoku/formatter/base.rb', line 9

def initialize(board)
  @board = board
end

Instance Attribute Details

#boardObject (readonly)

Returns the value of attribute board.



7
8
9
# File 'lib/xudoku/formatter/base.rb', line 7

def board
  @board
end

Instance Method Details

#formatObject



13
14
15
# File 'lib/xudoku/formatter/base.rb', line 13

def format
  raise "Unimplemented"
end