lib/polyfill/v2_4/hash/instance/compact_e.rb in polyfill-0.3.0 vs lib/polyfill/v2_4/hash/instance/compact_e.rb in polyfill-0.4.0

- old
+ new

@@ -7,17 +7,15 @@ def compact! reject! { |_, v| v.nil? } end end - if RUBY_VERSION < '2.4.0' - refine ::Hash do - include Method - end + refine ::Hash do + include Method + end - def self.included(base) - base.include Method - end + def self.included(base) + base.include Method end end end end end