class Pitchcar::Pieces::StraightRightWall
Public Instance Methods
image()
click to toggle source
# File lib/pieces/straight_right_wall.rb, line 4 def image if south? IMAGE.rotate(90) elsif west? IMAGE.rotate(180) elsif east? IMAGE elsif north? IMAGE.rotate(270) end end
to_s()
click to toggle source
# File lib/pieces/straight_right_wall.rb, line 16 def to_s 'Srw' end