Exception: Voodoo::Compiler::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/voodoo/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ Error

Returns a new instance of Error.



14
15
16
# File 'lib/voodoo/compiler.rb', line 14

def initialize errors
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



18
19
20
# File 'lib/voodoo/compiler.rb', line 18

def errors
  @errors
end

Instance Method Details

#messageObject



20
21
22
23
24
# File 'lib/voodoo/compiler.rb', line 20

def message
  msg = ""
  @errors.each {|e| msg << e.message << "\n"}
  msg
end