Module: Cucover::Monkey
- Defined in:
- lib/cucover/monkey.rb
Class Method Summary collapse
Class Method Details
.extend_every(args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/cucover/monkey.rb', line 3 def self.extend_every(args) class_to_extend = args.keys.first module_to_extend_with = args.values.first class_to_extend.instance_eval <<-PATCH def new(*args) super(*args).extend(#{module_to_extend_with}) end PATCH end |