Class: TwitterCldr::Transforms::Filters::FilterRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/twitter_cldr/transforms/filters/filter_rule.rb

Overview

Decides which filter to apply

Direct Known Subclasses

NullFilter, UnicodeFilter

Constant Summary

Constants inherited from Rule

Rule::STRING_TYPES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rule

#backward?, #forward?, #invert, #is_comment?, #is_conversion_rule?, #is_conversion_rule_set?, #is_transform_rule?, #is_variable?, regexp_token_string, remove_comment, replace_symbols, #token_string, token_string, #token_value, token_value

Class Method Details

.accepts?(rule_text) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/twitter_cldr/transforms/filters/filter_rule.rb', line 17

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

.parse(rule_text, symbol_table, index) ⇒ Object



13
14
15
# File 'lib/twitter_cldr/transforms/filters/filter_rule.rb', line 13

def parse(rule_text, symbol_table, index)
  Filters::UnicodeFilter.parse(rule_text, symbol_table)
end

Instance Method Details

#is_filter_rule?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/twitter_cldr/transforms/filters/filter_rule.rb', line 22

def is_filter_rule?
  true
end