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.



321
322
323
324
# File 'lib/daedalus/dependency_grapher.rb', line 321

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

Instance Method Details

#execute(defines, node) ⇒ Object



326
327
328
# File 'lib/daedalus/dependency_grapher.rb', line 326

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