Module: FancyCount

Defined in:
lib/fancy_count.rb,
lib/fancy_count/adapter.rb,
lib/fancy_count/counter.rb,
lib/fancy_count/version.rb,
lib/fancy_count/test_adapter.rb,
lib/fancy_count/configuration.rb,
lib/fancy_count/has_countable.rb,
lib/fancy_count/redis_adapter.rb,
lib/fancy_count/counter_cacheable.rb

Defined Under Namespace

Modules: CounterCacheable, HasCountable Classes: Adapter, Configuration, Counter, Error, MissingAdapterError, MissingLogicError, RedisAdapter, TestAdapter, UnknownCounterError

Constant Summary collapse

VERSION =
"1.0.4"

Class Method Summary collapse

Class Method Details

.configObject



25
26
27
# File 'lib/fancy_count.rb', line 25

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/fancy_count.rb', line 21

def self.configure
  yield config if block_given?
end