Class: TwitterCldr::Transforms::Transforms::NullTransform

Inherits:
TransformRule show all
Defined in:
lib/twitter_cldr/transforms/transforms/null_transform.rb

Direct Known Subclasses

BreakInternalTransform

Constant Summary

Constants inherited from Rule

Rule::STRING_TYPES

Instance Attribute Summary

Attributes inherited from TransformRule

#backward_form, #forward_form

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TransformRule

#backward?, blank?, #forward?, #initialize, #invert, #is_transform_rule?, null?, parse

Methods inherited from Rule

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

Constructor Details

This class inherits a constructor from TwitterCldr::Transforms::Transforms::TransformRule

Class Method Details

.accepts?(forward_form, backward_form) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/twitter_cldr/transforms/transforms/null_transform.rb', line 12

def accepts?(forward_form, backward_form)
  valid_form?(forward_form) || valid_form?(backward_form)
end

Instance Method Details

#apply_to(cursor) ⇒ Object


23
24
25
26
# File 'lib/twitter_cldr/transforms/transforms/null_transform.rb', line 23

def apply_to(cursor)
  puts 'NULL' if $debug
  cursor.reset_position
end

#null?Boolean

Returns:

  • (Boolean)

28
29
30
# File 'lib/twitter_cldr/transforms/transforms/null_transform.rb', line 28

def null?
  true
end