Class: CodeMiner::Substitution::Value
- Inherits:
-
Struct
- Object
- Struct
- CodeMiner::Substitution::Value
- Defined in:
- lib/codeminer/substitution.rb
Instance Attribute Summary collapse
-
#column_adjustment ⇒ Object
Returns the value of attribute column_adjustment.
-
#node ⇒ Object
Returns the value of attribute node.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
Instance Method Summary collapse
Instance Attribute Details
#column_adjustment ⇒ Object
Returns the value of attribute column_adjustment
5 6 7 |
# File 'lib/codeminer/substitution.rb', line 5 def column_adjustment @column_adjustment end |
#node ⇒ Object
Returns the value of attribute node
5 6 7 |
# File 'lib/codeminer/substitution.rb', line 5 def node @node end |
#replacement ⇒ Object
Returns the value of attribute replacement
5 6 7 |
# File 'lib/codeminer/substitution.rb', line 5 def replacement @replacement end |
Instance Method Details
#<=>(other) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/codeminer/substitution.rb', line 7 def <=>(other) if node.line == other.node.line node.column <=> other.node.column else node.line <=> other.node.line end end |