module Ducktrails

TODO: below

  1. Too many conflicting name-spaces remaining from the first version

  2. Class doesn't do 1 thing

  3. Some redundancy between methods

Constants

VALID_RESOURCES
VERSION

Public Class Methods

config() click to toggle source

Global settings for Ducktrails

# File lib/ducktrails/config.rb, line 13
def self.config
  @config ||= self.config
end
configure() { |config ||= configuration| ... } click to toggle source

Configures global settings for Ducktrails

Ducktrails.configure do |config|
  config.default_per_page = 10
end
# File lib/ducktrails/config.rb, line 8
def self.configure(&block)
  yield @config ||= Ducktrails::Configuration.new
end