lib/polyfill/v2_4/integer/digits.rb in polyfill-0.1.0 vs lib/polyfill/v2_4/integer/digits.rb in polyfill-0.2.0
- old
+ new
@@ -15,19 +15,15 @@
remainder, value = remainder.divmod(base)
acc.push(value)
end
acc
end if RUBY_VERSION < '2.4.0'
-
- def respond_to?(method, *)
- return true if method.to_sym == :digits
-
- super
- 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