Skip to content

Conversation

@schlick
Copy link
Member

@schlick schlick commented Mar 15, 2019

This will allow us to access the original rule set in the same way as with condition and outcome.

@@ -1,8 +1,11 @@
class RulesEngine::Set
attr_reader :root, :name
attr_reader :name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for indenting down? It's not like we're developing using phone screens :P

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks beautiful man!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But seriously, I changed it to match the format of RulesEngine::Outcome and RulesEngine::Condition plus I usually switch to a vertical format when the list gets to be 3 or 4 in length so that it makes it easier to scan the list for attributes. Being a converted trailing comma enthusiast, I'd love to hang a comma off the last item in the list but sadly I can't.

Copy link

@chesterl chesterl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schlick schlick merged commit 5b58c4d into develop Mar 15, 2019
@schlick schlick deleted the add-original-to-rule-set branch March 15, 2019 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants