Sha256: 68c4076ab7a61bc3789a71347cc0aa6f9138edfe84780a303949e08a3d540625

Contents?: true

Size: 577 Bytes

Versions: 29

Compression:

Stored size: 577 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Transforms
    module Filters

      # Decides which filter to apply
      class FilterRule < Rule
        class << self
          def parse(rule_text, symbol_table, index)
            Filters::UnicodeFilter.parse(rule_text, symbol_table)
          end

          def accepts?(rule_text)
            Filters::UnicodeFilter.accepts?(rule_text)
          end
        end

        def is_filter_rule?
          true
        end
      end

    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
twitter_cldr-6.13.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.12.1 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.12.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.5 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.4 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.3 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.2 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.1 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.11.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.10.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.9.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.8.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.7.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.6.2 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.6.1 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.6.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.5.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.4.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.3.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-6.2.0 lib/twitter_cldr/transforms/filters/filter_rule.rb