Class: TwitterCldr::Formatters::Rbnf::NegativeRuleFormatter

Inherits:
NormalRuleFormatter show all
Defined in:
lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb

Instance Attribute Summary

Attributes inherited from NormalRuleFormatter

#is_fractional, #locale, #omit, #rule_group, #rule_set

Instance Method Summary collapse

Methods inherited from NormalRuleFormatter

#equals, #format, #generate_replacement, #initialize, #plaintext, #plural, #semicolon

Constructor Details

This class inherits a constructor from TwitterCldr::Formatters::Rbnf::NormalRuleFormatter

Instance Method Details

#close_bracket(number, rule, token) ⇒ Object



154
155
156
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 154

def close_bracket(number, rule, token)
  raise invalid_token_error(token)
end

#left_arrow(number, rule, token) ⇒ Object



146
147
148
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 146

def left_arrow(number, rule, token)
  raise invalid_token_error(token)
end

#open_bracket(number, rule, token) ⇒ Object



150
151
152
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 150

def open_bracket(number, rule, token)
  raise invalid_token_error(token)
end

#right_arrow(number, rule, token) ⇒ Object



142
143
144
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 142

def right_arrow(number, rule, token)
  generate_replacement(number.abs, rule, token)
end