| Class | Spec::Example::ModuleInclusionWarnings::MethodDispatcher |
| In: |
lib/spec/example/module_inclusion_warnings.rb
|
| Parent: | Object |
Thanks, Francis Hwang.
# File lib/spec/example/module_inclusion_warnings.rb, line 9
9: def initialize(mod, target=nil)
10: @mod = mod
11: @target = target
12: end
# File lib/spec/example/module_inclusion_warnings.rb, line 18
18: def call(sym, *args, &blk)
19: Kernel.warn("Modules will no longer be automatically included in RSpec version 1.1.4. Called from #{caller[2]}")
20: @target.extend @mod
21: @target.send(sym, *args, &blk)
22: end