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
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def class_id @class_id end |
#confidence ⇒ Object
Returns the value of attribute confidence
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def confidence @confidence end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def from_node_id @from_node_id end |
#strategy ⇒ Object
Returns the value of attribute strategy
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def strategy @strategy end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
214 215 216 |
# File 'lib/ast/merge.rb', line 214 def to_node_id @to_node_id end |
Instance Method Details
#to_h ⇒ Object
216 217 218 219 220 221 222 223 224 225 |
# File 'lib/ast/merge.rb', line 216 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 |