class Cir::StoredFile
Represents metadata about stored file.
Attributes
file_path[R]
Full file path of the original file location
repository_location[R]
Location in the repository with stored and versioned copy of the file
Public Class Methods
new(attrs = {})
click to toggle source
Constructor that will optionally populate attributes
# File lib/cir/stored_file.rb, line 29 def initialize(attrs = {}) attrs.each do |attr, value| instance_variable_set "@#{attr}", value end end
Public Instance Methods
diff()
click to toggle source
Generate diff using DiffManager
# File lib/cir/stored_file.rb, line 37 def diff Cir::DiffManager.create(repository_location, file_path) end