Created
July 30, 2014 22:20
-
-
Save amitittyerah/5683b7bc96f4ecdf63b4 to your computer and use it in GitHub Desktop.
class_eval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Manager | |
def self.make_available(klass, user) | |
klass.class_eval do | |
define_method("for_#{user}") do | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment