Class: BOARD::B

Inherits:
Object
  • Object
show all
Defined in:
lib/toychest/board.rb

Defined Under Namespace

Classes: C

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#boardObject (readonly)

Returns the value of attribute board.



7
8
9
# File 'lib/toychest/board.rb', line 7

def board
  @board
end

Instance Method Details

#[](k) ⇒ Object



11
12
13
# File 'lib/toychest/board.rb', line 11

def [] k
	C.new(@board, k)
end