Created
December 10, 2008 11:45
-
-
Save banister/34310 to your computer and use it in GitHub Desktop.
This file contains 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
require 'rubygems' | |
require 'object2module' | |
class Object | |
include Object2module | |
def gen_extend(*objs) | |
objs.each_with_index { |v, i| | |
if !v.instance_of?(Module) then | |
objs[i] = v.object2module | |
end | |
# extend(*objs) | |
return objs | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment