Sha256: 338695c5955b62dbdfded2bb95590253866242cf980c19d63396eef49fd3ec66
Contents?: true
Size: 443 Bytes
Versions: 10
Compression:
Stored size: 443 Bytes
Contents
module Sprite # provides the root directory to use when reading and writing files def self.root @root ||= nil # set the root to the framework setting (if not already set) @root ||= begin if defined?(Rails) Rails.root elsif defined?(Merb) Merb.root else "." end end @root end end require 'sprite/builder' require 'sprite/image_combiner' require 'sprite/styles'
Version data entries
10 entries across 10 versions & 2 rubygems