Class: AnalyzedToken
- Inherits:
-
Object
- Object
- AnalyzedToken
- Defined in:
- lib/dcov/analyzed_token.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, parent) ⇒ AnalyzedToken
constructor
A new instance of AnalyzedToken.
Constructor Details
#initialize(name, parent) ⇒ AnalyzedToken
Returns a new instance of AnalyzedToken.
4 5 6 7 |
# File 'lib/dcov/analyzed_token.rb', line 4 def initialize(name, parent) @name = name @parent = parent end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/dcov/analyzed_token.rb', line 2 def name @name end |
#parent ⇒ Object
Returns the value of attribute parent.
2 3 4 |
# File 'lib/dcov/analyzed_token.rb', line 2 def parent @parent end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 |
# File 'lib/dcov/analyzed_token.rb', line 9 def ==(other) (self.name == other.name) && (self.parent == other.parent) end |