Exception: Voodoo::CodeGenerator::SymbolsImportedAfterUseError

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

Overview

Error raised when a symbol is imported after it has been used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbols) ⇒ SymbolsImportedAfterUseError

Returns a new instance of SymbolsImportedAfterUseError.



86
87
88
89
90
# File 'lib/voodoo/code_generator.rb', line 86

def initialize symbols
  @symbols = symbols
  super("Symbols imported after they have been used: " +
        symbols.to_a.join(" "))
end

Instance Attribute Details

#symbolsObject (readonly)

Returns the value of attribute symbols.



92
93
94
# File 'lib/voodoo/code_generator.rb', line 92

def symbols
  @symbols
end