Skip to content

Instantly share code, notes, and snippets.

@fxposter
Created July 30, 2014 13:00
Show Gist options
  • Save fxposter/a8624290de55d0dc714a to your computer and use it in GitHub Desktop.
Save fxposter/a8624290de55d0dc714a to your computer and use it in GitHub Desktop.
def one
yield 1
end
def a
one { |x| yield x }
end
def b(&block)
one(&block)
end
def c
one(&Proc.new)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment