Sha256: 8fdfafcd7234c4a2a6c038699c502e6e34e0a49ed8f243d494205f422b5076db

Contents?: true

Size: 360 Bytes

Versions: 13

Compression:

Stored size: 360 Bytes

Contents

module Locomotive
  class PluginWithManyFilterModules
    include Locomotive::Plugin

    module Filters
      def add_newline(input)
        "#{input}\n"
      end
    end

    module MoreFilters
      def remove_http(input)
        input.sub(%r{^http://}, '')
      end
    end

    def self.liquid_filters
      [ Filters, MoreFilters ]
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_plugins-1.2.0 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.1.1 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.1.0 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.1 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta10 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta9 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta8 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta7 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta6 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta5 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta4 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta3 spec/support/plugins/plugin_with_many_filter_modules.rb
locomotive_plugins-1.0.0.beta2 spec/support/plugins/plugin_with_many_filter_modules.rb