Sha256: 80ffd59204f7188881525996fa8bd56f052201ece60a45c8e5fd8b36bbc1f4b8

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

module Polyfill
  module V2_4
    module File
      module Class
        module EmptyQ
          module Method
            def empty?(file_name)
              zero?(file_name)
            end
          end

          if RUBY_VERSION < '2.4.0'
            refine ::File.singleton_class do
              include Method
            end

            def self.included(base)
              base.include Method
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.3.0 lib/polyfill/v2_4/file/class/empty_q.rb