module ReVIEW class Location def initialize(filename, compiler) @filename = filename @f = compiler end attr_reader :filename def lineno @f.current_line end def string begin "#{@filename}:#{self.lineno}" rescue "#{@filename}:nil" end end alias_method :to_s, :string end end