class Spec::Example::ModuleInclusionWarnings::MethodDispatcher
Thanks, Francis Hwang.
def call(sym, *args, &blk)
def call(sym, *args, &blk) Kernel.warn("Modules will no longer be automatically included in RSpec version 1.1.4. Called from #{caller[2]}") @target.extend @mod @target.send(sym, *args, &blk) end
def initialize(mod, target=nil)
def initialize(mod, target=nil) @mod = mod @target = target end
def respond_to?(sym)
def respond_to?(sym) @mod && @mod.instance_methods.include?(sym.to_s) end