Module: Mapboxkit::Configurable

Included in:
Client
Defined in:
lib/mapboxkit/configurable.rb

Overview

Configuration options the Mapboxkit::Client, defaulting to values

Defined Under Namespace

Classes: Config

Instance Method Summary collapse

Instance Method Details

#configObject



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

def config
  @config ||= Config.new
end

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

Yields:



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

def configure
  yield(config)
end