1module Heading 2 def represents?(direction) 3 self.class.name.downcase.to_sym == direction 4 end 5 def to_s 6 self.class.name[0] 7 end 8end