Class: Ast::Merge::TieBreakMatchingReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::TieBreakMatchingReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#matching_id ⇒ Object
Returns the value of attribute matching_id.
-
#scope_path ⇒ Object
Returns the value of attribute scope_path.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#tie_break_rules ⇒ Object
Returns the value of attribute tie_break_rules.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def diagnostics @diagnostics end |
#matches ⇒ Object
Returns the value of attribute matches
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def matches @matches end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def matching_id @matching_id end |
#scope_path ⇒ Object
Returns the value of attribute scope_path
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def scope_path @scope_path end |
#strategy ⇒ Object
Returns the value of attribute strategy
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def strategy @strategy end |
#tie_break_rules ⇒ Object
Returns the value of attribute tie_break_rules
704 705 706 |
# File 'lib/ast/merge.rb', line 704 def tie_break_rules @tie_break_rules end |
Instance Method Details
#to_h ⇒ Object
706 707 708 709 710 711 712 713 714 715 |
# File 'lib/ast/merge.rb', line 706 def to_h { matching_id: matching_id, strategy: strategy, scope_path: scope_path, tie_break_rules: tie_break_rules || [], matches: (matches || []).map(&:to_h), diagnostics: diagnostics || [] } end |