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.



10
11
12
13
14
# File 'lib/delorean/error.rb', line 10

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.



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

def line
  @line
end

#module_nameObject (readonly)

Returns the value of attribute module_name.



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

def module_name
  @module_name
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/delorean/error.rb', line 16

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