-
-
Save ELLIOTTCABLE/1095649 to your computer and use it in GitHub Desktop.
My thought on improving Ruby construct end syntax.
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
# See my comment on wayneeseguin’s post: https://gist.github.com/1095634#gistcomment-41339 | |
module MyModule | |
class MyClass | |
def my_method | |
10.times do | |
if rand < 0.5 | |
p :small | |
end | |
end | |
end | |
end | |
end | |
module MyModule { | |
class MyClass { | |
def my_method { | |
10.times do { | |
if rand < 0.5 { | |
p :small } } | |
} | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment