module Ducktrails
TODO: below
-
Too many conflicting name-spaces remaining from the first version
-
Class doesn't do 1 thing
-
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