Skip to content

Instantly share code, notes, and snippets.

@rubiii
Created March 21, 2013 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 rubiii/5215824 to your computer and use it in GitHub Desktop.
Save rubiii/5215824 to your computer and use it in GitHub Desktop.
class Class
def to_proc
Proc.new { |string| self.new string }
end
end
%w[a b c].map &String
@phoet
Copy link

phoet commented Mar 21, 2013

🙈

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