Sha256: 01001b61e42cb76ceff3ed5c861ad51bffe6958858f5c6fe9828c246a11a874b
Contents?: true
Size: 279 Bytes
Versions: 37
Compression:
Stored size: 279 Bytes
Contents
class NSNumber def string_with_style(style=NSNumberFormatterDecimalStyle) if style.respond_to?(:nsnumberstyle) style = style.nsnumberstyle end NSNumberFormatter.localizedStringFromNumber(self, numberStyle:style) end def to_bool boolValue end end
Version data entries
37 entries across 37 versions & 1 rubygems