Class: Daedalus::DependencyGrapher::Undefine

Inherits:
Node
  • Object
show all
Defined in:
lib/daedalus/dependency_grapher.rb

Instance Method Summary collapse

Methods inherited from Node

#add_else, #close

Constructor Details

#initialize(macro, parser) ⇒ Undefine

Returns a new instance of Undefine.



273
274
275
276
# File 'lib/daedalus/dependency_grapher.rb', line 273

def initialize(macro, parser)
  super parser
  @macro = macro.strip
end

Instance Method Details

#execute(defines, node) ⇒ Object



278
279
280
# File 'lib/daedalus/dependency_grapher.rb', line 278

def execute(defines, node)
  defines.delete @macro
end