Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2013 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5707777 to your computer and use it in GitHub Desktop.
Save anonymous/5707777 to your computer and use it in GitHub Desktop.
Some weird ruby issue
class A
@x = 0
def self.give_list
{
'blah' => :x
}
def self.run_it(obj)
self.give_list.each {|x| obj.send(x)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment