Class: MasterView::Analyzer::StackEntry
- Inherits:
-
Object
- Object
- MasterView::Analyzer::StackEntry
- Defined in:
- lib/masterview/analyzer.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#import ⇒ Object
Returns the value of attribute import.
-
#name ⇒ Object
Returns the value of attribute name.
-
#page_attributes ⇒ Object
Returns the value of attribute page_attributes.
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
- #inc_parts ⇒ Object
-
#initialize(name, depth, import, page_attributes) ⇒ StackEntry
constructor
A new instance of StackEntry.
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
#buffer ⇒ Object
Returns the value of attribute buffer.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def buffer @buffer end |
#depth ⇒ Object
Returns the value of attribute depth.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def depth @depth end |
#import ⇒ Object
Returns the value of attribute import.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def import @import end |
#name ⇒ Object
Returns the value of attribute name.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def name @name end |
#page_attributes ⇒ Object
Returns the value of attribute page_attributes.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def page_attributes @page_attributes end |
#parts ⇒ Object
Returns the value of attribute parts.
64 65 66 |
# File 'lib/masterview/analyzer.rb', line 64 def parts @parts end |
Instance Method Details
#inc_parts ⇒ Object
75 76 77 |
# File 'lib/masterview/analyzer.rb', line 75 def inc_parts @parts += 1 end |