Exception: Voodoo::CodeGenerator::SymbolsImportedAfterUseError
Overview
Error raised when a symbol is imported after it has been used.
Instance Attribute Summary collapse
-
#symbols ⇒ Object
readonly
Returns the value of attribute symbols.
Instance Method Summary collapse
-
#initialize(symbols) ⇒ SymbolsImportedAfterUseError
constructor
A new instance of SymbolsImportedAfterUseError.
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
#symbols ⇒ Object (readonly)
Returns the value of attribute symbols.
92 93 94 |
# File 'lib/voodoo/code_generator.rb', line 92 def symbols @symbols end |