Sha256: 977647717e9bcb1344a436226d32eccc73899c995f29c0ab3fe7202fb5311a10
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
module Heartwood class Configuration attr_accessor :app_title, :cache_pages, :development_url, :production_url def initialize @app_title = 'Heartwood' @cache_pages = false @development_url = 'localhost:3000' @production_url = 'example.com' end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield configuration end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heartwood-0.0.1 | lib/heartwood/configuration.rb |