lib/polyfill/v2_4/integer/round.rb in polyfill-0.1.0 vs lib/polyfill/v2_4/integer/round.rb in polyfill-0.2.0
- old
+ new
@@ -14,11 +14,13 @@
place = 10 ** -ndigits
(self.to_f / place).round * place
end if RUBY_VERSION < '2.4.0'
end
- refine ::Integer do
- include Method
+ if RUBY_VERSION < '2.4.0'
+ refine ::Integer do
+ include Method
+ end
end
end
end
end
end