Class: RBI::MergeTree
- Inherits:
-
Tree
- Object
- Node
- NodeWithComments
- Tree
- RBI::MergeTree
- Extended by:
- T::Sig
- Defined in:
- lib/rbi/rewriters/merge_trees.rb
Overview
A tree that might contain conflicts
Instance Attribute Summary collapse
-
#conflicts ⇒ Object
readonly
Returns the value of attribute conflicts.
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(loc: nil, comments: [], conflicts: [], &block) ⇒ MergeTree
constructor
A new instance of MergeTree.
Methods inherited from Tree
#<<, #add_sig_templates!, #annotate!, #deannotate!, #empty?, #filter_versions!, #flatten_singleton_methods!, #flatten_visibilities!, #group_nodes!, #index, #merge, #nest_non_public_members!, #nest_singleton_methods!, #nest_top_level_members!, #replace_attributes_with_methods!, #sort_nodes!
Methods inherited from NodeWithComments
#annotations, #merge_with, #version_requirements
Methods inherited from Node
#compatible_with?, #detach, #merge_with, #parent_conflict_tree, #parent_scope, #print, #rbs_print, #rbs_string, #replace, #satisfies_version?, #string
Constructor Details
#initialize(loc: nil, comments: [], conflicts: [], &block) ⇒ MergeTree
Returns a new instance of MergeTree.
344 345 346 347 348 |
# File 'lib/rbi/rewriters/merge_trees.rb', line 344 def initialize(loc: nil, comments: [], conflicts: [], &block) super(loc: loc, comments: comments) @conflicts = conflicts block&.call(self) end |
Instance Attribute Details
#conflicts ⇒ Object (readonly)
Returns the value of attribute conflicts.
334 335 336 |
# File 'lib/rbi/rewriters/merge_trees.rb', line 334 def conflicts @conflicts end |