Class: TwitterCldr::Formatters::Rbnf::NegativeRuleFormatter
Instance Attribute Summary
#is_fractional, #locale, #omit, #rule_group, #rule_set
Instance Method Summary
collapse
#decimal, #equals, #format, #generate_replacement, #initialize, #plaintext, #plural, #semicolon
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
|