Module: LionAttr::ModuleInterface
- Included in:
- LionAttr
- Defined in:
- lib/lion_attr/config.rb
Overview
Instance Method Summary collapse
-
#configure ⇒ Config
Sets the LionAttr configuration options.
Instance Method Details
#configure ⇒ Config
Sets the LionAttr configuration options. Best used by passing a block. You should configure before actually using LionAttr.
redis datababse 13
LionAttr.configure do |config|
config.redis_config = { db: 13 }
end
33 34 35 |
# File 'lib/lion_attr/config.rb', line 33 def configure block_given? ? yield(::LionAttr::Config) : ::LionAttr::Config end |