lib/polyfill/v2_4/float/truncate.rb in polyfill-0.1.0 vs lib/polyfill/v2_4/float/truncate.rb in polyfill-0.2.0

- old
+ new

@@ -15,11 +15,13 @@ (self.to_f / place).truncate * 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