class Copernicium::FileObj
Attributes
base[R]
history[R]
path[R]
Public Class Methods
new(path, ids)
click to toggle source
# File lib/workspace.rb, line 7 def initialize(path, ids) @base = File.dirname(path) @history = ids @path = path end
Public Instance Methods
==(rhs)
click to toggle source
# File lib/workspace.rb, line 13 def ==(rhs) if rhs.is_a? String @path == rhs else @path == rhs.path end end
last()
click to toggle source
returns most recent file id in the snapshot it was saved in
# File lib/workspace.rb, line 22 def last() @history.last end