Class: Gobstones::HtmlBoard
- Inherits:
-
Object
- Object
- Gobstones::HtmlBoard
- Defined in:
- lib/render/html_board.rb
Instance Attribute Summary collapse
-
#boom ⇒ Object
readonly
Returns the value of attribute boom.
-
#gbb ⇒ Object
readonly
Returns the value of attribute gbb.
Instance Method Summary collapse
-
#initialize(board, boom = false) ⇒ HtmlBoard
constructor
A new instance of HtmlBoard.
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
#boom ⇒ Object (readonly)
Returns the value of attribute boom.
5 6 7 |
# File 'lib/render/html_board.rb', line 5 def boom @boom end |
#gbb ⇒ Object (readonly)
Returns the value of attribute gbb.
5 6 7 |
# File 'lib/render/html_board.rb', line 5 def gbb @gbb end |