Skip to content

Instantly share code, notes, and snippets.

@rbxbx
Created December 14, 2010 01:36
Show Gist options
  • Select an option

  • Save rbxbx/739884 to your computer and use it in GitHub Desktop.

Select an option

Save rbxbx/739884 to your computer and use it in GitHub Desktop.
define methods on a lambda, who knew. Well, probably a lot of you.
Objector = lambda do |properties|
lambda do |meth|
properties[meth]
end
end
def Objector.new(props); self[props] end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment