Module: Notion::Configurable

Included in:
Notion
Defined in:
lib/notion/configurable.rb

Overview

Dynamic configuration

Defined Under Namespace

Classes: Configuration

Instance Method Summary collapse

Instance Method Details

#configObject



10
11
12
# File 'lib/notion/configurable.rb', line 10

def config
  @config ||= Configuration.new
end

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

Yields:



6
7
8
# File 'lib/notion/configurable.rb', line 6

def configure
  yield config
end

#setupObject



14
15
16
# File 'lib/notion/configurable.rb', line 14

def setup
  @config = nil
end