Class: Ast::Merge::StructuralMatchingReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::StructuralMatchingReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#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.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#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
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def diagnostics @diagnostics end |
#from_revision ⇒ Object
Returns the value of attribute from_revision
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def from_revision @from_revision end |
#matches ⇒ Object
Returns the value of attribute matches
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def matches @matches end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def matching_id @matching_id end |
#strategy ⇒ Object
Returns the value of attribute strategy
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def strategy @strategy end |
#to_revision ⇒ Object
Returns the value of attribute to_revision
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def to_revision @to_revision end |
#unmatched_from ⇒ Object
Returns the value of attribute unmatched_from
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def unmatched_from @unmatched_from end |
#unmatched_to ⇒ Object
Returns the value of attribute unmatched_to
449 450 451 |
# File 'lib/ast/merge.rb', line 449 def unmatched_to @unmatched_to end |
Instance Method Details
#to_h ⇒ Object
451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/ast/merge.rb', line 451 def to_h { matching_id: matching_id, strategy: strategy, from_revision: from_revision, to_revision: to_revision, matches: (matches || []).map(&:to_h), unmatched_from: unmatched_from || [], unmatched_to: unmatched_to || [], diagnostics: diagnostics || [] } end |