Class: MasterView::Analyzer::StackEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/masterview/analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, depth, import) ⇒ StackEntry

Returns a new instance of StackEntry.



34
35
36
37
38
39
40
# File 'lib/masterview/analyzer.rb', line 34

def initialize(name, depth, import)
  @name = name
  @depth = depth
  @import = import
  @buffer = []
  @parts = 0
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer.



32
33
34
# File 'lib/masterview/analyzer.rb', line 32

def buffer
  @buffer
end

#depthObject

Returns the value of attribute depth.



32
33
34
# File 'lib/masterview/analyzer.rb', line 32

def depth
  @depth
end

#importObject

Returns the value of attribute import.



32
33
34
# File 'lib/masterview/analyzer.rb', line 32

def import
  @import
end

#nameObject

Returns the value of attribute name.



32
33
34
# File 'lib/masterview/analyzer.rb', line 32

def name
  @name
end

#partsObject

Returns the value of attribute parts.



32
33
34
# File 'lib/masterview/analyzer.rb', line 32

def parts
  @parts
end

Instance Method Details

#inc_partsObject



42
43
44
# File 'lib/masterview/analyzer.rb', line 42

def inc_parts
  @parts += 1
end