Class: Redmine::AssetPath::AssetPathMap

Inherits:
Struct
  • Object
show all
Defined in:
lib/redmine/asset_path.rb

Instance Method Summary collapse

Instance Method Details

#afterObject



118
119
120
# File 'lib/redmine/asset_path.rb', line 118

def after
  logical_dest.relative_path_from(logical_src).to_s
end

#beforeObject



114
115
116
# File 'lib/redmine/asset_path.rb', line 114

def before
  dest.relative_path_from(src).to_s
end

#dirnameObject



109
110
111
112
# File 'lib/redmine/asset_path.rb', line 109

def dirname
  key = logical_src.to_s.sub('/', '')
  key == '' ? '.' : key
end