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
414 415 416 |
# File 'lib/ast/merge.rb', line 414 def confidence @confidence end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
414 415 416 |
# File 'lib/ast/merge.rb', line 414 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
414 415 416 |
# File 'lib/ast/merge.rb', line 414 def from_path @from_path end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
414 415 416 |
# File 'lib/ast/merge.rb', line 414 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
414 415 416 |
# File 'lib/ast/merge.rb', line 414 def to_path @to_path end |
Instance Method Details
#to_h ⇒ Object
416 417 418 419 420 421 422 423 424 |
# File 'lib/ast/merge.rb', line 416 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 |