Exception: Voodoo::CodeGenerator::SymbolsExportedAfterUseError

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbols) ⇒ SymbolsExportedAfterUseError

Returns a new instance of SymbolsExportedAfterUseError.



75
76
77
78
79
# File 'lib/voodoo/code_generator.rb', line 75

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

Instance Attribute Details

#symbolsObject (readonly)

Returns the value of attribute symbols.



81
82
83
# File 'lib/voodoo/code_generator.rb', line 81

def symbols
  @symbols
end