Class: Karel::Wall
Overview
A wall square
Instance Method Summary collapse
Instance Method Details
#beeper? ⇒ Boolean
37 |
# File 'lib/karel/square.rb', line 37 def beeper?; false; end |
#put_beeper ⇒ Object
39 |
# File 'lib/karel/square.rb', line 39 def put_beeper; raise SquareOccupied; end |
#to_s ⇒ Object
38 |
# File 'lib/karel/square.rb', line 38 def to_s; "W"; end |
#wall? ⇒ Boolean
36 |
# File 'lib/karel/square.rb', line 36 def wall?; true; end |