lib/cocoa/sugarcube-numbers/nsnumber.rb in sugarcube-2.7.0 vs lib/cocoa/sugarcube-numbers/nsnumber.rb in sugarcube-2.7.1
- old
+ new
@@ -5,6 +5,10 @@
style = style.nsnumberstyle
end
NSNumberFormatter.localizedStringFromNumber(self, numberStyle:style)
end
+ def to_bool
+ boolValue
+ end
+
end