lib/jruby_art/helpers/numeric.rb in jruby_art-0.2.2.pre vs lib/jruby_art/helpers/numeric.rb in jruby_art-0.2.3.pre
- old
+ new
@@ -1,5 +1,6 @@
-class Numeric #:nodoc:
+# extends Numeric class to provide degrees and radians convenience methods
+class Numeric
def degrees
self * 180 / Math::PI
end
def radians