Module: LionAttr::ModuleInterface

Included in:
LionAttr
Defined in:
lib/lion_attr/config.rb

Overview

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#configureConfig

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

Examples:

Set up configuration options and tell LionAttr to store everything in

Returns:

  • (Config)

    The configuration object.

Since:

  • 0.1.0



33
34
35
# File 'lib/lion_attr/config.rb', line 33

def configure
  block_given? ? yield(::LionAttr::Config) : ::LionAttr::Config
end