class HaveAPI::Fs::Components::ProxyFile

Public Class Methods

new(path) click to toggle source
Calls superclass method HaveAPI::Fs::Component::new
# File lib/haveapi/fs/components/proxy_file.rb, line 3
def initialize(path)
  super()
  @path = path
end

Public Instance Methods

read() click to toggle source
# File lib/haveapi/fs/components/proxy_file.rb, line 17
def read
  ::File.read(@path)
end
size() click to toggle source
# File lib/haveapi/fs/components/proxy_file.rb, line 13
def size
  ::File.size(@path)
end
times() click to toggle source
# File lib/haveapi/fs/components/proxy_file.rb, line 8
def times
  st = ::File.stat(@path)
  [st.atime, st.mtime, st.ctime]
end