Class: BOARD::B
- Inherits:
-
Object
- Object
- BOARD::B
- Defined in:
- lib/toychest/board.rb
Defined Under Namespace
Classes: C
Instance Attribute Summary collapse
-
#board ⇒ Object
readonly
Returns the value of attribute board.
Instance Method Summary collapse
- #[](k) ⇒ Object
-
#initialize(k) ⇒ B
constructor
A new instance of B.
Constructor Details
#initialize(k) ⇒ B
Returns a new instance of B.
8 9 10 |
# File 'lib/toychest/board.rb', line 8 def initialize k @board = k end |
Instance Attribute Details
#board ⇒ Object (readonly)
Returns the value of attribute board.
7 8 9 |
# File 'lib/toychest/board.rb', line 7 def board @board end |