Class: TwitterCldr::Transforms::Transforms::BlankTransform

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

Constant Summary collapse

TRANSFORM =
'blank'.freeze

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

accepts?, #backward?, blank?, #forward?, #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

Class Method Details

.instanceObject



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

def self.instance
  @instance ||= new
end

Instance Method Details

#apply_to(cursor) ⇒ Object



25
26
27
# File 'lib/twitter_cldr/transforms/transforms/blank_transform.rb', line 25

def apply_to(cursor)
  puts 'BLANK' if $debug
end

#blank?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/twitter_cldr/transforms/transforms/blank_transform.rb', line 33

def blank?
  true
end

#has_transform?(*args) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/twitter_cldr/transforms/transforms/blank_transform.rb', line 41

def has_transform?(*args)
  false
end

#null?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/twitter_cldr/transforms/transforms/blank_transform.rb', line 29

def null?
  false
end

#transformObject



37
38
39
# File 'lib/twitter_cldr/transforms/transforms/blank_transform.rb', line 37

def transform
  TRANSFORM
end