Created
December 6, 2017 11:58
-
-
Save sos4nt/9e0b5b3b6c2cb8619a5024c34cf4d199 to your computer and use it in GitHub Desktop.
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
def a_1 | |
{ a: 1 } if condition_1 | |
end | |
def a_2 | |
{ a: 2 } if condition_2 | |
end | |
def a_3 | |
{ a: 3 } | |
end | |
def my_func | |
a_1 || a_2 || a_3 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment