Class: Gobstones::HtmlBoard

Inherits:
Object
  • Object
show all
Defined in:
lib/render/html_board.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(board, boom = false) ⇒ HtmlBoard

Returns a new instance of HtmlBoard.



7
8
9
10
# File 'lib/render/html_board.rb', line 7

def initialize(board, boom = false)
  @gbb = board[:table][:gbb]
  @boom = boom
end

Instance Attribute Details

#boomObject (readonly)

Returns the value of attribute boom.



5
6
7
# File 'lib/render/html_board.rb', line 5

def boom
  @boom
end

#gbbObject (readonly)

Returns the value of attribute gbb.



5
6
7
# File 'lib/render/html_board.rb', line 5

def gbb
  @gbb
end