Methods

Warbler::PathmapHelper

Public Instance Methods

apply_pathmaps(config, file, pathmaps) click to toggle source
# File lib/warbler/pathmap_helper.rb, line 10
def apply_pathmaps(config, file, pathmaps)
  file = file.to_s
  file = file[2..-1] if file =~ /^\.\//
  pathmaps = config.pathmaps.send(pathmaps)
  pathmaps.each do |p|
    file = file.pathmap(p)
  end if pathmaps
  file
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.