Exception: 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.
14 15 16 |
# File 'lib/voodoo/compiler.rb', line 14 def initialize errors @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
18 19 20 |
# File 'lib/voodoo/compiler.rb', line 18 def errors @errors end |
Instance Method Details
#message ⇒ Object
20 21 22 23 24 |
# File 'lib/voodoo/compiler.rb', line 20 def msg = "" @errors.each {|e| msg << e. << "\n"} msg end |