Sha256: 1e465ddb0569ce6e8d8e315fd29217ad7eb7b67c68fa5a27ef7366e4212c83c1

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

module HaveAPI::Fs::Components
  class ProxyFile < File
    def initialize(path)
      super()
      @path = path
    end

    def times
      st = ::File.stat(@path)
      [st.atime, st.mtime, st.ctime]
    end

    def size
      ::File.size(@path)
    end

    def read
      ::File.read(@path)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
haveapi-fs-0.11.0 lib/haveapi/fs/components/proxy_file.rb
haveapi-fs-0.10.0 lib/haveapi/fs/components/proxy_file.rb
haveapi-fs-0.9.0 lib/haveapi/fs/components/proxy_file.rb
haveapi-fs-0.8.0 lib/haveapi/fs/components/proxy_file.rb
haveapi-fs-0.7.1 lib/haveapi/fs/components/proxy_file.rb
haveapi-fs-0.7.0 lib/haveapi/fs/components/proxy_file.rb