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

Version Path
sprite-generator-0.1.11 lib/sprite.rb
sprite-0.1.7 lib/sprite.rb
sprite-generator-0.1.10 lib/sprite.rb
sprite-generator-0.1.9 lib/sprite.rb
sprite-generator-0.1.8 lib/sprite.rb
sprite-generator-0.1.7 lib/sprite.rb
sprite-0.1.6 lib/sprite.rb
sprite-0.1.5 lib/sprite.rb
sprite-0.1.4 lib/sprite.rb
sprite-0.1.3 lib/sprite.rb