Sha256: c4d984363ce68651fd34238665e9318d93d0564f6fcc92734e50be9b70d761fd

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

module InlineSvg::TransformPipeline::Transformations
  class Transformation
    def self.create_with_value(value)
      self.new(value)
    end

    attr_reader :value

    def initialize(value)
      @value = value
    end

    def transform(*)
      raise "#transform should be implemented by subclasses of Transformation"
    end
  end

  class NullTransformation < Transformation
    def transform(doc)
      doc
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inline_svg-0.5.3 lib/inline_svg/transform_pipeline/transformations/transformation.rb
inline_svg-0.5.2 lib/inline_svg/transform_pipeline/transformations/transformation.rb
inline_svg-0.5.1 lib/inline_svg/transform_pipeline/transformations/transformation.rb
inline_svg-0.5.0 lib/inline_svg/transform_pipeline/transformations/transformation.rb
inline_svg-0.4.0 lib/inline_svg/transform_pipeline/transformations/transformation.rb