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.



107
108
109
# File 'lib/daedalus/dependency_grapher.rb', line 107

def body
  @body
end

Instance Method Details

#closeObject



114
115
116
# File 'lib/daedalus/dependency_grapher.rb', line 114

def close
  @parser.stack_pop
end

#execute_body(defines, node) ⇒ Object



118
119
120
# File 'lib/daedalus/dependency_grapher.rb', line 118

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

#initialize(parser) ⇒ Object



109
110
111
112
# File 'lib/daedalus/dependency_grapher.rb', line 109

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