lib/polyfill/v2_4/dir/class/empty_q.rb in polyfill-0.3.0 vs lib/polyfill/v2_4/dir/class/empty_q.rb in polyfill-0.4.0
- old
+ new
@@ -7,17 +7,15 @@
def empty?(path_name)
exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
end
end
- if RUBY_VERSION < '2.4.0'
- refine ::Dir.singleton_class do
- include Method
- end
+ refine ::Dir.singleton_class do
+ include Method
+ end
- def self.included(base)
- base.include Method
- end
+ def self.included(base)
+ base.include Method
end
end
end
end
end