Class: Ast::Merge::SourceTextNormalizedMatch
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::SourceTextNormalizedMatch
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#from_node_id ⇒ Object
Returns the value of attribute from_node_id.
-
#from_path ⇒ Object
Returns the value of attribute from_path.
-
#from_source_text ⇒ Object
Returns the value of attribute from_source_text.
-
#normalized_text ⇒ Object
Returns the value of attribute normalized_text.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
-
#to_path ⇒ Object
Returns the value of attribute to_path.
-
#to_source_text ⇒ Object
Returns the value of attribute to_source_text.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def confidence @confidence end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def from_path @from_path end |
#from_source_text ⇒ Object
Returns the value of attribute from_source_text
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def from_source_text @from_source_text end |
#normalized_text ⇒ Object
Returns the value of attribute normalized_text
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def normalized_text @normalized_text end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def to_path @to_path end |
#to_source_text ⇒ Object
Returns the value of attribute to_source_text
491 492 493 |
# File 'lib/ast/merge.rb', line 491 def to_source_text @to_source_text end |
Instance Method Details
#to_h ⇒ Object
493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/ast/merge.rb', line 493 def to_h { normalized_text: normalized_text, from_path: from_path, to_path: to_path, from_node_id: from_node_id, to_node_id: to_node_id, from_source_text: from_source_text, to_source_text: to_source_text, confidence: confidence, diagnostics: diagnostics || [] } end |