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

#decimal, #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



166
167
168
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 166

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

#left_arrow(number, rule, token) ⇒ Object



158
159
160
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 158

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

#open_bracket(number, rule, token) ⇒ Object



162
163
164
# File 'lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb', line 162

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

#right_arrow(number, rule, token) ⇒ Object



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

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