module Riml::ErrorWithoutNodeAvailable

Attributes

filename[RW]
lineno[RW]

Public Class Methods

new(msg = nil, filename = nil, lineno = nil) click to toggle source
Calls superclass method
# File lib/riml/errors.rb, line 28
def initialize(msg = nil, filename = nil, lineno = nil)
  super(msg, nil)
  @filename = filename
  @lineno = lineno
end

Public Instance Methods

location_info() click to toggle source
# File lib/riml/errors.rb, line 34
def location_info
  if @filename || @lineno
    "#{@filename}:#{@lineno}"
  else
    Constants::UNKNOWN_LOCATION_INFO
  end
end