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.



41
42
43
44
45
46
47
# File 'lib/masterview/analyzer.rb', line 41

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.



39
40
41
# File 'lib/masterview/analyzer.rb', line 39

def buffer
  @buffer
end

#depthObject

Returns the value of attribute depth.



39
40
41
# File 'lib/masterview/analyzer.rb', line 39

def depth
  @depth
end

#importObject

Returns the value of attribute import.



39
40
41
# File 'lib/masterview/analyzer.rb', line 39

def import
  @import
end

#nameObject

Returns the value of attribute name.



39
40
41
# File 'lib/masterview/analyzer.rb', line 39

def name
  @name
end

#partsObject

Returns the value of attribute parts.



39
40
41
# File 'lib/masterview/analyzer.rb', line 39

def parts
  @parts
end

Instance Method Details

#inc_partsObject



49
50
51
# File 'lib/masterview/analyzer.rb', line 49

def inc_parts
  @parts += 1
end