class Rubycritic::Location

def <=>(other)

def <=>(other)
  state <=> other.state
end

def ==(other)

def ==(other)
  state == other.state
end

def file_name

def file_name
  @pathname.basename.sub_ext("").to_s
end

def initialize(path, line)

def initialize(path, line)
  @pathname = Pathname.new(path)
  @line = line.to_i
end

def state

def state
  [@pathname, @line]
end

def to_s

def to_s
  "#{pathname}:#{line}"
end