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