class ReVIEW::Location

Attributes

filename[R]

Public Class Methods

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

Public Instance Methods

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