Exception: Fasterer::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fasterer/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ ParseError

Returns a new instance of ParseError.



5
6
7
8
# File 'lib/fasterer/parse_error.rb', line 5

def initialize(file_path)
  @file_path = file_path
  super("Unable to read #{file_path}")
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



3
4
5
# File 'lib/fasterer/parse_error.rb', line 3

def file_path
  @file_path
end