Exception: Delorean::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/delorean/error.rb

Overview

Parse Errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, module_name, line) ⇒ ParseError

Returns a new instance of ParseError.



8
9
10
11
12
# File 'lib/delorean/error.rb', line 8

def initialize(message, module_name, line)
  super(message)
  @line = line
  @module_name = module_name
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



6
7
8
# File 'lib/delorean/error.rb', line 6

def line
  @line
end

#module_nameObject (readonly)

Returns the value of attribute module_name.



6
7
8
# File 'lib/delorean/error.rb', line 6

def module_name
  @module_name
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/delorean/error.rb', line 14

def to_s
  super + " #{module_name}:#{line}"
end