Method: Avm::Sources::Base#relative_path

Defined in:
lib/avm/sources/base.rb

#relative_pathPathname

Returns:

  • (Pathname)


33
34
35
36
37
# File 'lib/avm/sources/base.rb', line 33

def relative_path
  return path if parent.blank?

  path.relative_path_from(parent.path)
end