class Gluey::Dependencies::SingleFile

Attributes

data[R]
file[R]

Public Class Methods

new(file, **data) click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 6
def initialize(file, **data)
  @file = file
  @data = data
end

Public Instance Methods

==(other) click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 24
def ==(other)
  @file == other.file
end
actualize() click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 11
def actualize
  @mtime = File.mtime(@file).to_i
  self
end
changed?() click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 16
def changed?
  File.mtime(@file).to_i != @mtime rescue true
end
exists?() click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 20
def exists?
  File.exists? @file
end
mark() click to toggle source
# File lib/gluey/workshop/dependencies/single_file.rb, line 28
def mark
  File.mtime(@file).to_i.to_s
end