Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My thought on improving Ruby construct end syntax.
# 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
You can’t perform that action at this time.