Sha256: ff0464f4279b289678a6541ee1b07693410c4f3f74115e44f15cfb566ce37fe4

Contents?: true

Size: 542 Bytes

Versions: 8

Compression:

Stored size: 542 Bytes

Contents

module Voltron
  class Config

    def svg
      @svg ||= Svg.new
    end

    class Svg

      attr_accessor :build_environment, :source_directory, :image_directory, :quality

      def initialize
        @quality ||= 90
        @build_environment ||= [:development]
        @source_directory ||= Rails.root.join("app", "assets", "svg")
        @image_directory ||= Rails.root.join("app", "assets", "images")
      end

      def buildable?
        [build_environment].flatten.map(&:to_s).include?(Rails.env.to_s)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voltron-svg-0.1.4 lib/voltron/config/svg.rb
voltron-svg-0.1.9 lib/voltron/config/svg.rb
voltron-svg-0.1.2 lib/voltron/config/svg.rb
voltron-svg-0.1.3 lib/voltron/config/svg.rb
voltron-svg-0.1.5 lib/voltron/config/svg.rb
voltron-svg-0.1.7 lib/voltron/config/svg.rb
voltron-svg-0.1.6 lib/voltron/config/svg.rb
voltron-svg-0.1.8 lib/voltron/config/svg.rb