Method: Middleman::Sitemap::ProxyResource#initialize
- Defined in:
- lib/middleman-core/sitemap/extensions/proxies.rb
#initialize(store, path, target) ⇒ ProxyResource
Initialize resource with parent store and URL
73 74 75 76 77 78 79 |
# File 'lib/middleman-core/sitemap/extensions/proxies.rb', line 73 def initialize(store, path, target) super(store, path) target = ::Middleman::Util.normalize_path(target) raise "You can't proxy #{path} to itself!" if target == path @target = target end |