Class: Ast::Merge::PairwiseMatching
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::PairwiseMatching
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#from_revision ⇒ Object
Returns the value of attribute from_revision.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#matching_id ⇒ Object
Returns the value of attribute matching_id.
-
#to_revision ⇒ Object
Returns the value of attribute to_revision.
-
#unmatched_from ⇒ Object
Returns the value of attribute unmatched_from.
-
#unmatched_to ⇒ Object
Returns the value of attribute unmatched_to.
Instance Method Summary collapse
Instance Attribute Details
#from_revision ⇒ Object
Returns the value of attribute from_revision
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def from_revision @from_revision end |
#matches ⇒ Object
Returns the value of attribute matches
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def matches @matches end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def matching_id @matching_id end |
#to_revision ⇒ Object
Returns the value of attribute to_revision
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def to_revision @to_revision end |
#unmatched_from ⇒ Object
Returns the value of attribute unmatched_from
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def unmatched_from @unmatched_from end |
#unmatched_to ⇒ Object
Returns the value of attribute unmatched_to
228 229 230 |
# File 'lib/ast/merge.rb', line 228 def unmatched_to @unmatched_to end |
Instance Method Details
#to_h ⇒ Object
230 231 232 233 234 235 236 237 238 239 |
# File 'lib/ast/merge.rb', line 230 def to_h { matching_id: matching_id, from_revision: from_revision, to_revision: to_revision, matches: (matches || []).map(&:to_h), unmatched_from: unmatched_from || [], unmatched_to: unmatched_to || [] } end |