Sha256: 6d7da08c9d9cc64a7faffae49c170b4b37359a6bc4b7bef74003c9acb66bd887

Contents?: true

Size: 718 Bytes

Versions: 1

Compression:

Stored size: 718 Bytes

Contents

module WebResourceBundler
  module Filters
    #virtaul base class for filters
    class BaseFilter
      attr_reader :settings

      def initialize(settings, file_manager)
        @settings = Settings.new(settings)
        @file_manager = file_manager
      end

      def set_settings(settings)
        @settings.set(settings)
      end

      def apply(block_data = nil)
        #applies filter to block_data
      end

      #resource is hash {:css => ResourceBundle::Data, :js => ResourceBundle::Data}
      def change_resulted_files!(resource = nil)
        #this method changes resource file names to resulted files paths
        #used to determine if resulted files exist on disk
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
web_resource_bundler-0.0.13 lib/web_resource_bundler/filters/base_filter.rb