Method: GitDS::ModelItemClass#instance_path

Defined in:
lib/git-ds/model/item.rb

#instance_path(parent_path, ident) ⇒ Object

Return the path to an instance of the object under parent_path.



76
77
78
79
80
# File 'lib/git-ds/model/item.rb', line 76

def instance_path(parent_path, ident)
  path = build_path(parent_path)
  path += ::File::SEPARATOR if not path.empty?
  path += ident.to_s
end