Sha256: 4b73875eccdc861b61fc4e1293754b91e4d424493dcdfc7e51552e088b36f9ce

Contents?: true

Size: 244 Bytes

Versions: 17

Compression:

Stored size: 244 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

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sugarcube-2.7.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.6.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.5.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.4.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.4.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.4.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.3.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.2.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.5 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.4 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.3 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.1.0 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.0.2 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.0.1 lib/cocoa/sugarcube-numbers/nsnumber.rb
sugarcube-2.0.0 lib/cocoa/sugarcube-numbers/nsnumber.rb