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.17.1 lib/td/compat_core.rb
td-0.17.0 lib/td/compat_core.rb
td-0.16.10 lib/td/compat_core.rb
td-0.16.9 lib/td/compat_core.rb
td-0.16.8 lib/td/compat_core.rb
td-0.16.7 lib/td/compat_core.rb
td-0.16.6 lib/td/compat_core.rb
td-0.16.5 lib/td/compat_core.rb
td-0.16.4 lib/td/compat_core.rb
td-0.16.3 lib/td/compat_core.rb
td-0.16.1 lib/td/compat_core.rb
td-0.16.0 lib/td/compat_core.rb
td-0.15.9 lib/td/compat_core.rb
td-0.15.8 lib/td/compat_core.rb
td-0.15.7 lib/td/compat_core.rb
td-0.15.6 lib/td/compat_core.rb
td-0.15.5 lib/td/compat_core.rb
td-0.15.4 lib/td/compat_core.rb
td-0.15.3 lib/td/compat_core.rb
td-0.15.2 lib/td/compat_core.rb