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-4.0.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.5.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.4.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.4.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.4.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.7 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.6 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.5 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.4 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.3 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.3.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.2.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.1.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.1.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.8 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.7 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.6 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-3.0.5 lib/cocoa/sugarcube-numbers/nsnumber.rb