lib/polyfill/v2_4/float/floor.rb in polyfill-0.1.0 vs lib/polyfill/v2_4/float/floor.rb in polyfill-0.2.0
- old
+ new
@@ -15,11 +15,13 @@
(self / place).floor * place
end
end if RUBY_VERSION < '2.4.0'
end
- refine ::Float do
- include Method
+ if RUBY_VERSION < '2.4.0'
+ refine ::Float do
+ include Method
+ end
end
end
end
end
end