Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Forked from anonymous/gist:5707777
Last active December 18, 2015 01:59
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 jazzdan/5707802 to your computer and use it in GitHub Desktop.
Save jazzdan/5707802 to your computer and use it in GitHub Desktop.
class A
@x = 0
def self.give_list
{
'blah' => :x
}
end
def self.run_it(obj)
self.give_list.values.each {|x| obj.send(x)}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment