Sha256: 35fb905a66a64c0a862ff0df471c2032bc24e8ad5e259482ce4f29929acd2401
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
module Stylish module Developer class Config < Struct.new(:environment, :root, :base, :assets_prefix, :library_root) def base_url base || "/stylish" end def asset_prefix assets_prefix || "/assets" end def library lib_root = library_root || Pathname(Dir.pwd).join("library") Stylish::Library.load_from_disk(lib_root) Stylish::Library.loaded.first end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stylish-0.3.1 | lib/stylish/developer/config.rb |
stylish-0.3.0 | lib/stylish/developer/config.rb |
stylish-0.0.2 | lib/stylish/developer/config.rb |