lib/polyfill/v2_4/comparable/instance/clamp.rb in polyfill-0.3.0 vs lib/polyfill/v2_4/comparable/instance/clamp.rb in polyfill-0.4.0

- old
+ new

@@ -13,23 +13,21 @@ return max if max < self self end end - if RUBY_VERSION < '2.4.0' - refine ::Numeric do - include Method - end - refine ::String do - include Method - end - refine ::Time do - include Method - end + refine ::Numeric do + include Method + end + refine ::String do + include Method + end + refine ::Time do + include Method + end - def self.included(base) - base.include Method - end + def self.included(base) + base.include Method end end end end end