class Middleman::Sources

def deleted(matcher=nil, &block)

Parameters:
  • matcher (nil, Regexp) -- A Regexp to match the change path against
def deleted(matcher=nil, &block)
  on_change :source do |_updated, removed|
    removed.select { |f|
      matcher.nil? ? true : matches?(matcher, f)
    }.each do |f|
      block.call(f[:relative_path])
    end
  end
end