Sha256: ba4599b18bb042483e16132e378c0a0add4abab96421fe4ad296eae663ffa470

Contents?: true

Size: 572 Bytes

Versions: 17

Compression:

Stored size: 572 Bytes

Contents

module Typus
  module Controller
    module Filters

      protected

      def add_predefined_filter(*args)
        @predefined_filters ||= []
        @predefined_filters << args unless args.empty?
      end

      def prepend_predefined_filter(*args)
        @predefined_filters ||= []
        @predefined_filters = @predefined_filters.unshift(args) unless args.empty?
      end

      def append_predefined_filter(*args)
        @predefined_filters ||= []
        @predefined_filters = @predefined_filters.concat([args]) unless args.empty?
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
typus-3.0.12 lib/typus/controller/filters.rb
typus-3.0.11 lib/typus/controller/filters.rb
typus-3.0.11.rc5 lib/typus/controller/filters.rb
typus-3.0.11.rc4 lib/typus/controller/filters.rb
typus-3.0.11.rc3 lib/typus/controller/filters.rb
typus-3.1.0.rc6 lib/typus/controller/filters.rb
typus-3.1.0.rc5 lib/typus/controller/filters.rb
typus-3.1.0.rc4 lib/typus/controller/filters.rb
typus-3.1.0.rc3 lib/typus/controller/filters.rb
typus-3.1.0.rc2 lib/typus/controller/filters.rb
typus-3.0.11.rc2 lib/typus/controller/filters.rb
typus-3.0.11.rc1 lib/typus/controller/filters.rb
typus-3.1.0.rc1 lib/typus/controller/filters.rb
typus-3.0.10 lib/typus/controller/filters.rb
typus-3.0.9 lib/typus/controller/filters.rb
typus-3.0.8 lib/typus/controller/filters.rb
typus-3.0.7 lib/typus/controller/filters.rb