bfoz / units-ruby

Add support for units of measure to Ruby's Numeric class
BSD 2-Clause "Simplified" License
5 stars 3 forks source link

Use prepend in Ruby 2 #12

Closed bfoz closed 9 years ago

bfoz commented 12 years ago

Use prepend for mixins instead of include, but it only works in Ruby 2.0.

bfoz commented 10 years ago

Using include is causing all Rationals to be monkey-patched, instead of only the instances with units. Fixing this in a backwards-compatible way is breaking my brain. It may be time to bite the bullet and require Ruby 2.0.

bfoz commented 9 years ago

Switched to using prepend