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.
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
- #inc_parts ⇒ Object
-
#initialize(name, depth, import) ⇒ StackEntry
constructor
A new instance of StackEntry.
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
#buffer ⇒ Object
Returns the value of attribute buffer.
32 33 34 |
# File 'lib/masterview/analyzer.rb', line 32 def buffer @buffer end |
#depth ⇒ Object
Returns the value of attribute depth.
32 33 34 |
# File 'lib/masterview/analyzer.rb', line 32 def depth @depth end |
#import ⇒ Object
Returns the value of attribute import.
32 33 34 |
# File 'lib/masterview/analyzer.rb', line 32 def import @import end |
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/masterview/analyzer.rb', line 32 def name @name end |
#parts ⇒ Object
Returns the value of attribute parts.
32 33 34 |
# File 'lib/masterview/analyzer.rb', line 32 def parts @parts end |
Instance Method Details
#inc_parts ⇒ Object
42 43 44 |
# File 'lib/masterview/analyzer.rb', line 42 def inc_parts @parts += 1 end |