class Quick::FS::ROCodeFile

Attributes

ctime[RW]
mtime[RW]
source[RW]

Public Class Methods

new(source) click to toggle source
# File lib/quick/fs.rb, line 52
def initialize(source)
        @source = source
end

Public Instance Methods

read_file(path) click to toggle source
# File lib/quick/fs.rb, line 65
def read_file(path)
        @atime = Time.now
        @source
end
size(path) click to toggle source
# File lib/quick/fs.rb, line 61
def size(path)
        @source.bytesize
end
times(path) click to toggle source
# File lib/quick/fs.rb, line 56
def times(path)
        now = Time.now
        [@atime ||= now, @mtime ||= now, @ctime ||= now]
end