Sha256: 86f5640e0e4054177d1f62bd4f83f41ef707525840afa870b15e76f2c67aefb2

Contents?: true

Size: 305 Bytes

Versions: 18

Compression:

Stored size: 305 Bytes

Contents

module Avo
  module Resources
    class Resource
      class << self
        @@filters = {}

        def use_filter(filter)
          @@filters[self] ||= []
          @@filters[self].push(filter)
        end

        def get_filters
          @@filters[self] or []
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
avo-0.4.10 lib/avo/app/resource_filters.rb
avo-0.4.9 lib/avo/app/resource_filters.rb
avo-0.4.8 lib/avo/app/resource_filters.rb
avo-0.4.7 lib/avo/app/resource_filters.rb
avo-0.4.6 lib/avo/app/resource_filters.rb
avo-0.4.5 lib/avo/app/resource_filters.rb
avo-0.4.4 lib/avo/app/resource_filters.rb
avo-0.4.3 lib/avo/app/resource_filters.rb
avo-0.4.2 lib/avo/app/resource_filters.rb
avo-0.4.1 lib/avo/app/resource_filters.rb
avo-0.3.2 lib/avo/app/resource_filters.rb
avo-0.3.1 lib/avo/app/resource_filters.rb
avo-0.2.5 lib/avo/app/resource_filters.rb
avo-0.2.4 lib/avo/app/resource_filters.rb
avo-0.2.3 lib/avo/app/resource_filters.rb
avo-0.2.2 lib/avo/app/resource_filters.rb
avo-0.2.1 lib/avo/app/resource_filters.rb
avo-0.2.0 lib/avo/app/resource_filters.rb