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.15.0 lib/td/compat_core.rb
td-0.14.1 lib/td/compat_core.rb
td-0.14.0 lib/td/compat_core.rb
td-0.13.2 lib/td/compat_core.rb
td-0.13.1 lib/td/compat_core.rb
td-0.13.0 lib/td/compat_core.rb
td-0.12.0 lib/td/compat_core.rb
td-0.11.14 lib/td/compat_core.rb
td-0.11.13 lib/td/compat_core.rb
td-0.11.12 lib/td/compat_core.rb
td-0.11.11.2 lib/td/compat_core.rb
td-0.11.11.1 lib/td/compat_core.rb
td-0.11.11 lib/td/compat_core.rb
td-0.11.10 lib/td/compat_core.rb
td-0.11.9 lib/td/compat_core.rb
td-0.11.8.2 lib/td/compat_core.rb
td-0.11.8.1 lib/td/compat_core.rb
td-0.11.8 lib/td/compat_core.rb
td-0.11.7 lib/td/compat_core.rb
td-0.11.6 lib/td/compat_core.rb