Class: Ast::Merge::PairwiseNodeMatch
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::PairwiseNodeMatch
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#class_id ⇒ Object
Returns the value of attribute class_id.
-
#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.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
Instance Method Summary collapse
Instance Attribute Details
#class_id ⇒ Object
Returns the value of attribute class_id
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def class_id @class_id end |
#confidence ⇒ Object
Returns the value of attribute confidence
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def confidence @confidence end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def from_node_id @from_node_id end |
#strategy ⇒ Object
Returns the value of attribute strategy
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def strategy @strategy end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
192 193 194 |
# File 'lib/ast/merge.rb', line 192 def to_node_id @to_node_id end |
Instance Method Details
#to_h ⇒ Object
194 195 196 197 198 199 200 201 202 203 |
# File 'lib/ast/merge.rb', line 194 def to_h { from_node_id: from_node_id, to_node_id: to_node_id, class_id: class_id, strategy: strategy, confidence: confidence, diagnostics: diagnostics || [] } end |