Created
December 27, 2023 18:10
-
-
Save markburns/ee2dcfe72aacd17422dcee297cf396cf to your computer and use it in GitHub Desktop.
interactify ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 | |
class SomeOrganizer | |
include Interactify | |
organize \ | |
self.if(:key_set_on_context, | |
self.chain(DoThingA, ThenB, ThenC), | |
self.chain(DoDifferentThingB, ThenDifferentC) | |
), | |
EitherWayDoThis | |
end | |
# 2 | |
class SomeOrganizer | |
include Interactify | |
organize \ | |
self.if(:key_set_on_context, | |
then: [DoThingA, ThenB, ThenC], | |
else: [DoDifferentThingB, ThenDifferentC] | |
), | |
EitherWayDoThis | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment