Module: Overlord

Defined in:
lib/overlord/config.rb,
lib/overlord/engine.rb,
lib/overlord/parse_json.rb,
lib/overlord/google_base.rb,
lib/overlord/google_feed_request.rb,
lib/overlord/google_search_request.rb

Overview

Configure overlord

Defined Under Namespace

Modules: JsonParser Classes: Configuration, Engine, GoogleBase, GoogleFeedRequest, GoogleSearchRequest

Class Method Summary collapse

Class Method Details

.configurationObject



5
6
7
8
# File 'lib/overlord/config.rb', line 5

def self.configuration
  # In case the user doesn't setup a configure block we can always return default settings:
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



10
11
12
13
# File 'lib/overlord/config.rb', line 10

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end