Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Forked from wayneeseguin/gist:1095634
Created July 20, 2011 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/1095649 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/1095649 to your computer and use it in GitHub Desktop.
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