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

Version Path
sugarcube-3.0.4 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.3 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.12.3 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.12.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.12.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.12.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.11.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.11.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.10.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.9.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.8.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.8.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.8.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.7.1 lib/cocoa/sugarcube-numbers/nsnumber.rb