Module: Daedalus::DependencyGrapher::Container

Included in:
Else, If, IfDefined, IfNotDefined, IncludedFile, SourceFile
Defined in:
lib/daedalus/dependency_grapher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



59
60
61
# File 'lib/daedalus/dependency_grapher.rb', line 59

def body
  @body
end

Instance Method Details

#closeObject



66
67
68
# File 'lib/daedalus/dependency_grapher.rb', line 66

def close
  @parser.stack_pop
end

#execute_body(defines, node) ⇒ Object



70
71
72
# File 'lib/daedalus/dependency_grapher.rb', line 70

def execute_body(defines, node)
  body.each { |x| x.execute(defines, node) }
end

#initialize(parser) ⇒ Object



61
62
63
64
# File 'lib/daedalus/dependency_grapher.rb', line 61

def initialize(parser)
  super parser
  @body = []
end