Class: Ast::Merge::StructuralPathMatch
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::StructuralPathMatch
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#from_node_id ⇒ Object
Returns the value of attribute from_node_id.
-
#from_path ⇒ Object
Returns the value of attribute from_path.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
-
#to_path ⇒ Object
Returns the value of attribute to_path.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
436 437 438 |
# File 'lib/ast/merge.rb', line 436 def confidence @confidence end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
436 437 438 |
# File 'lib/ast/merge.rb', line 436 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
436 437 438 |
# File 'lib/ast/merge.rb', line 436 def from_path @from_path end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
436 437 438 |
# File 'lib/ast/merge.rb', line 436 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
436 437 438 |
# File 'lib/ast/merge.rb', line 436 def to_path @to_path end |
Instance Method Details
#to_h ⇒ Object
438 439 440 441 442 443 444 445 446 |
# File 'lib/ast/merge.rb', line 438 def to_h { from_path: from_path, to_path: to_path, from_node_id: from_node_id, to_node_id: to_node_id, confidence: confidence } end |