Sha256: bb6b2c5607c40ae0aadccfa4e2da03c234dbbd90cffe90c973ab9e946adcaccc

Contents?: true

Size: 162 Bytes

Versions: 110

Compression:

Stored size: 162 Bytes

Contents

# File#size
methods = File.public_instance_methods.map {|m| m.to_sym }
if !methods.include?(:size)
  class File
    def size
      lstat.size
    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
td-0.10.43 lib/td/compat_core.rb
td-0.10.42 lib/td/compat_core.rb
td-0.10.41 lib/td/compat_core.rb
td-0.10.40 lib/td/compat_core.rb
td-0.10.39 lib/td/compat_core.rb
td-0.10.38 lib/td/compat_core.rb
td-0.10.37 lib/td/compat_core.rb
td-0.10.36 lib/td/compat_core.rb
td-0.10.35 lib/td/compat_core.rb
td-0.10.34 lib/td/compat_core.rb