module Modgen

Constants

APIKEY_CONFIGURATION
API_CONFIGURATION
DEFAULT_CONFIGURATION
OAUTH2_CONFIGURATION
OAUTH2_REDIRECT_URI
SITE_URL
VERSION

Public Class Methods

config() click to toggle source

Line set and get configuration

Set: Modgen.config.key = “value”

Get: Modgen.config.key

Returns:

Top of Modgen::Configuration

# File lib/modgen.rb, line 29
def self.config
  @config ||= Modgen::Configuration.new(DEFAULT_CONFIGURATION)
end
configure(&block) click to toggle source

Cofiguration with DSL

Modgen.configure do
  key "value"
end
# File lib/modgen.rb, line 39
def self.configure(&block)
  config.instance_eval(&block)
end