Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeBuilders - replace @root_class = 'Klass' in constructor with a filter_root_class method #5662

Closed
wants to merge 1 commit into from

Conversation

himdel
Copy link
Contributor

@himdel himdel commented May 31, 2019

Makes the inheritance approach a bit clearer (I hope),
and removes the need for super(*args) constructor in every class.

Also added the method to TreeBuilderConfiguredSystems which is an abstract class using the value from descendants.

And removed two stray attr_reader :tree_nodes, now also in TreeBuilder itself.

And added private in places where it was obvious.

Cc @skateman WDYT? (context: #5658 (comment))

…lter_root_class method

makes the inheritance approach a bit clearer,
removes the need for super(*args) constructor in every class
@himdel himdel changed the title TreeBuilders - replace @root_class = 'Klass' in constructor with a filter_root_class TreeBuilders - replace @root_class = 'Klass' in constructor with a filter_root_class method May 31, 2019
@himdel
Copy link
Contributor Author

himdel commented May 31, 2019

(and the answer is "no point" :))

@himdel himdel closed this May 31, 2019
@himdel himdel deleted the root-class branch May 31, 2019 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant