Sha256: 7feb6be1ec62664aa7fcb6733e559578403f0245936752dc8aabd35b0b52da97

Contents?: true

Size: 573 Bytes

Versions: 13

Compression:

Stored size: 573 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::RegexFilter.parse(rule_text, symbol_table)
          end

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

        def is_filter_rule?
          true
        end
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/transforms/filters/filter_rule.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.5 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.4 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.3 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.2 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.1 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.4.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.3.1 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.3.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.2.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.1.0 lib/twitter_cldr/transforms/filters/filter_rule.rb
twitter_cldr-4.0.0 lib/twitter_cldr/transforms/filters/filter_rule.rb