Sha256: b9f3db1e5d55f12820f57cda92f5b26779e4cfccf870a9ba6c127239a085f376

Contents?: true

Size: 538 Bytes

Versions: 10

Compression:

Stored size: 538 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/templated_css_generator'

module Sprite::Styles
  GENERATORS = {
    "css" => "CssGenerator",
    "templated_css" => "TemplatedCssGenerator",
    "sass" => "SassGenerator",
    "sass_mixin" => "SassMixinGenerator",
    "sass_yml" => "SassYmlGenerator"
  }

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

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
amikula-sprite-0.1.13 lib/sprite/styles.rb
amikula-sprite-0.1.12 lib/sprite/styles.rb
sprite-0.2.2 lib/sprite/styles.rb
sprite-0.2.1 lib/sprite/styles.rb
sprite-0.2.0 lib/sprite/styles.rb
amikula-sprite-0.1.11 lib/sprite/styles.rb
amikula-sprite-0.1.10 lib/sprite/styles.rb
amikula-sprite-0.1.9 lib/sprite/styles.rb
amikula-sprite-0.1.8.1 lib/sprite/styles.rb
amikula-sprite-0.1.8 lib/sprite/styles.rb