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.



312
313
314
315
# File 'lib/daedalus/dependency_grapher.rb', line 312

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

Instance Method Details

#execute(defines, node) ⇒ Object



317
318
319
# File 'lib/daedalus/dependency_grapher.rb', line 317

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