Exception: Voodoo::Compiler::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Voodoo::Compiler::Error
- Defined in:
- lib/voodoo/compiler.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ Error
Returns a new instance of Error.
13 14 15 |
# File 'lib/voodoo/compiler.rb', line 13 def initialize errors @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
17 18 19 |
# File 'lib/voodoo/compiler.rb', line 17 def errors @errors end |
Instance Method Details
#message ⇒ Object
19 20 21 22 23 |
# File 'lib/voodoo/compiler.rb', line 19 def msg = "" @errors.each {|e| msg << e. << "\n"} msg end |