Module: LeaderboardFactory::Configuration
- Included in:
- LeaderboardFactory
- Defined in:
- lib/leaderboard_factory/configuration.rb
Instance Attribute Summary collapse
-
#redis ⇒ Object
Redis instance.
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
yield self for block-style config.
Instance Attribute Details
#redis ⇒ Object
Redis instance
4 5 6 |
# File 'lib/leaderboard_factory/configuration.rb', line 4 def redis @redis end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
yield self for block-style config
LeaderboardFactory.configure { |c| c.redis = Redis.new(db: 15) }
9 10 11 |
# File 'lib/leaderboard_factory/configuration.rb', line 9 def configure yield self end |