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.84 lib/td/compat_core.rb
td-0.10.83 lib/td/compat_core.rb
td-0.10.82 lib/td/compat_core.rb
td-0.10.81 lib/td/compat_core.rb
td-0.10.79 lib/td/compat_core.rb
td-0.10.78 lib/td/compat_core.rb
td-0.10.77 lib/td/compat_core.rb
td-0.10.76 lib/td/compat_core.rb
td-0.10.75 lib/td/compat_core.rb
td-0.10.74 lib/td/compat_core.rb
td-0.10.73 lib/td/compat_core.rb
td-0.10.72 lib/td/compat_core.rb
td-0.10.71 lib/td/compat_core.rb
td-0.10.70 lib/td/compat_core.rb
td-0.10.69 lib/td/compat_core.rb
td-0.10.68 lib/td/compat_core.rb
td-0.10.67 lib/td/compat_core.rb
td-0.10.66 lib/td/compat_core.rb
td-0.10.65 lib/td/compat_core.rb
td-0.10.64 lib/td/compat_core.rb