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.
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
#buffer ⇒ Object
Returns the value of attribute buffer.
39 40 41 |
# File 'lib/masterview/analyzer.rb', line 39 def buffer @buffer end |
#depth ⇒ Object
Returns the value of attribute depth.
39 40 41 |
# File 'lib/masterview/analyzer.rb', line 39 def depth @depth end |
#import ⇒ Object
Returns the value of attribute import.
39 40 41 |
# File 'lib/masterview/analyzer.rb', line 39 def import @import end |
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/masterview/analyzer.rb', line 39 def name @name end |
#parts ⇒ Object
Returns the value of attribute parts.
39 40 41 |
# File 'lib/masterview/analyzer.rb', line 39 def parts @parts end |
Instance Method Details
#inc_parts ⇒ Object
49 50 51 |
# File 'lib/masterview/analyzer.rb', line 49 def inc_parts @parts += 1 end |