class TwitterCldr::Formatters::Rbnf::ImproperFractionRuleFormatter
Public Instance Methods
open_bracket(number, rule, token)
click to toggle source
# File lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb, line 230 def open_bracket(number, rule, token) # Omit the optional text if the number is between 0 and 1 (same as specifying both an x.x rule and a 0.x rule) @omit = number > 0 && number < 1 "" end