# File lib/dm-core/spec/adapter_shared_spec.rb, line 3 def self.adapter_supports?(*methods) methods.all? do |method| # TODO: figure out a way to see if the instance method is only inherited # from the Abstract Adapter, and not defined in it's class. If that is # the case return false # CRUD methods can be inherited from parent class described_type.instance_methods.any? { |instance_method| method.to_s == instance_method.to_s } end end