Class: Redmine::AssetPath::AssetPathMap
- Inherits:
-
Struct
- Object
- Struct
- Redmine::AssetPath::AssetPathMap
- Defined in:
- lib/redmine/asset_path.rb
Instance Method Summary collapse
Instance Method Details
#after ⇒ Object
118 119 120 |
# File 'lib/redmine/asset_path.rb', line 118 def after logical_dest.relative_path_from(logical_src).to_s end |
#before ⇒ Object
114 115 116 |
# File 'lib/redmine/asset_path.rb', line 114 def before dest.relative_path_from(src).to_s end |
#dirname ⇒ Object
109 110 111 112 |
# File 'lib/redmine/asset_path.rb', line 109 def dirname key = logical_src.to_s.sub('/', '') key == '' ? '.' : key end |