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.63 lib/td/compat_core.rb
td-0.10.62 lib/td/compat_core.rb
td-0.10.61 lib/td/compat_core.rb
td-0.10.60 lib/td/compat_core.rb
td-0.10.59 lib/td/compat_core.rb
td-0.10.58 lib/td/compat_core.rb
td-0.10.57 lib/td/compat_core.rb
td-0.10.56 lib/td/compat_core.rb
td-0.10.55 lib/td/compat_core.rb
td-0.10.54 lib/td/compat_core.rb
td-0.10.53 lib/td/compat_core.rb
td-0.10.52 lib/td/compat_core.rb
td-0.10.51 lib/td/compat_core.rb
td-0.10.50 lib/td/compat_core.rb
td-0.10.49 lib/td/compat_core.rb
td-0.10.48 lib/td/compat_core.rb
td-0.10.47 lib/td/compat_core.rb
td-0.10.46 lib/td/compat_core.rb
td-0.10.45 lib/td/compat_core.rb
td-0.10.44 lib/td/compat_core.rb