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, page_attributes) ⇒ StackEntry

Returns a new instance of StackEntry.



66
67
68
69
70
71
72
73
# File 'lib/masterview/analyzer.rb', line 66

def initialize(name, depth, import, page_attributes)
  @name = name
  @depth = depth
  @import = import
  @buffer = []
  @parts = 0
  @page_attributes = page_attributes  # directives that are unique to page and ignored during synchronization
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def buffer
  @buffer
end

#depthObject

Returns the value of attribute depth.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def depth
  @depth
end

#importObject

Returns the value of attribute import.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def import
  @import
end

#nameObject

Returns the value of attribute name.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def name
  @name
end

#page_attributesObject

Returns the value of attribute page_attributes.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def page_attributes
  @page_attributes
end

#partsObject

Returns the value of attribute parts.



64
65
66
# File 'lib/masterview/analyzer.rb', line 64

def parts
  @parts
end

Instance Method Details

#inc_partsObject



75
76
77
# File 'lib/masterview/analyzer.rb', line 75

def inc_parts
  @parts += 1
end