In Files

Parent

Class Index [+]

Quicksearch

Object

Public Class Methods

adapter_supports?(*methods) click to toggle source
    # File lib/dm-core/spec/shared/adapter_spec.rb, line 3
 3:   def self.adapter_supports?(*methods)
 4: 
 5:     # FIXME obviously this needs a real fix!
 6:     # --------------------------------------
 7:     # Probably, delaying adapter_supports?
 8:     # to be executed after DataMapper.setup
 9:     # has been called will solve our current
10:     # problem with described_type() being nil
11:     # for as long as DataMapper.setup wasn't
12:     # called
13:     return true if ENV['ADAPTER_SUPPORTS'] == 'all'
14: 
15:     methods.all? do |method|
16:       # TODO: figure out a way to see if the instance method is only inherited
17:       # from the Abstract Adapter, and not defined in it's class.  If that is
18:       # the case return false
19: 
20:       # CRUD methods can be inherited from parent class
21:       described_type.instance_methods.any? { |instance_method| method.to_s == instance_method.to_s }
22:     end
23:   end

Public Instance Methods

eql?(other) click to toggle source
    # File lib/dm-core/spec/shared/sel_spec.rb, line 24
24:         def eql?(other)
25:           super || self == other
26:         end
eql?(other) click to toggle source
    # File lib/dm-core/spec/shared/sel_spec.rb, line 80
80:         def eql?(other)
81:           super || other == self
82:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.