Skip to content

Instantly share code, notes, and snippets.

@cararemixed
Created January 3, 2011 19:16
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 cararemixed/763797 to your computer and use it in GitHub Desktop.
Save cararemixed/763797 to your computer and use it in GitHub Desktop.
extra argument to proc
class ExtraProc < Proc
attr_reader :extra
def initialize(extra, &b)
@extra = extra
super(&b)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment