Class/Module Index [+]

Quicksearch

CounterAdapter

Attributes

counts[R]

Public Class Methods

new(adapter) click to toggle source
# File lib/dm-core/spec/lib/counter_adapter.rb, line 24
def initialize(adapter)
  @counts  = Hash.new { |hash, key| hash[key] = 0 }
  @adapter = adapter
  @count   = 0
end

Public Instance Methods

instance_of?(klass) click to toggle source
# File lib/dm-core/spec/lib/counter_adapter.rb, line 14
def instance_of?(klass)
  super || @adapter.instance_of?(klass)
end
kind_of?(klass) click to toggle source
# File lib/dm-core/spec/lib/counter_adapter.rb, line 10
def kind_of?(klass)
  super || @adapter.kind_of?(klass)
end
respond_to?(method, include_private = false) click to toggle source
# File lib/dm-core/spec/lib/counter_adapter.rb, line 18
def respond_to?(method, include_private = false)
  super || @adapter.respond_to?(method, include_private)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.