Sha256: 064d7e1fa546219fe5043960634d2319f2a148a190599df719ef3e46b57e0021

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 Bytes

Contents

require 'sprite/styles/sass_generator'
require 'sprite/styles/css_generator'
require 'sprite/styles/sass_yml_generator'
require 'sprite/styles/sass_mixin_generator'
require 'sprite/styles/stylus_generator'
require 'sprite/styles/templated_css_generator'

module Sprite::Styles

  GENERATORS = {
    "css" => "CssGenerator",
    "templated_css" => "TemplatedCssGenerator",
    "sass" => "SassGenerator",
    "sass_mixin" => "SassMixinGenerator",
    "sass_yml" => "SassYmlGenerator",
    "stylus" => "StylusGenerator",
  }

  def self.get(config)
    const_get(GENERATORS[config])
  rescue
    CssGenerator
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sprite-0.3.0 lib/sprite/styles.rb
sprite-0.2.7 lib/sprite/styles.rb
sprite-0.2.6 lib/sprite/styles.rb
sprite-0.2.5 lib/sprite/styles.rb
sprite-0.2.4 lib/sprite/styles.rb