class ReVIEW::Location

Attributes

filename[R]

Public Class Methods

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

Public Instance Methods

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