class ReVIEW::Location

Attributes

filename[R]

Public Class Methods

new(filename, compiler) click to toggle source
# File lib/review/location.rb, line 3
def initialize(filename, compiler)
  @filename = filename
  @f = compiler
end

Public Instance Methods

lineno() click to toggle source
# File lib/review/location.rb, line 10
def lineno
  @f.current_line
end
string() click to toggle source
# File lib/review/location.rb, line 14
def string
  begin
    "#{@filename}:#{self.lineno}"
  rescue
    "#{@filename}:nil"
  end
end
Also aliased as: to_s
to_s()
Alias for: string