Sha256: 1b12fc389a410e2d8dd6deff38c3d8a3db84b1bdaa577731ed522fbf7b05fac5
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
module Spinebox class << self # Offers the configuration with the assets def config @@configuration ||= OpenStruct.new(:assets => Sprockets::Environment.new) yield(@@configuration) if block_given? @@configuration end # Straight access to the assets def assets config.assets end # Load the config def load_config!(config = "./config/config.rb") require config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spinebox-0.0.1 | lib/spinebox/config.rb |