Skip to content

Instantly share code, notes, and snippets.

@floere
Created April 30, 2010 12:22
Show Gist options
  • Save floere/385117 to your computer and use it in GitHub Desktop.
Save floere/385117 to your computer and use it in GitHub Desktop.
class Symbol
def to_a
proc { |*args| eval("#{self}(#{args.join(',')})") }
end
end
a = ["hello", "HeLlO"]
a.each(*:p)
# Hey, at least I tried, right? Right?
@kschiess
Copy link

kschiess commented May 3, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment