Class: Karel::Wall

Inherits:
Square show all
Defined in:
lib/karel/square.rb

Overview

A wall square

Instance Method Summary collapse

Instance Method Details

#beeper?Boolean

Returns:

  • (Boolean)


37
# File 'lib/karel/square.rb', line 37

def beeper?; false; end

#pick_beeperObject

Raises:



40
# File 'lib/karel/square.rb', line 40

def pick_beeper; raise NoBeeper; end

#put_beeperObject

Raises:



39
# File 'lib/karel/square.rb', line 39

def put_beeper; raise SquareOccupied; end

#to_sObject



38
# File 'lib/karel/square.rb', line 38

def to_s; "W"; end

#wall?Boolean

Returns:

  • (Boolean)


36
# File 'lib/karel/square.rb', line 36

def wall?; true; end