class Middleman::Sitemap::Extensions::Proxies::ProxyConfiguration

Configuration for a proxy instance

Attributes

metadata[RW]

Additional metadata like blocks and locals to apply to the proxy

path[R]

The path that this proxy will appear at in the sitemap

target[R]

The existing sitemap path that this will proxy to

Public Class Methods

new(options={}) click to toggle source

Create a new proxy configuration from hash options

# File lib/middleman-core/sitemap/extensions/proxies.rb, line 142
def initialize(options={})
  options.each do |key, value|
    send "#{key}=", value
  end
end

Public Instance Methods

eql?(other) click to toggle source

Two configurations are equal if they reference the same path

# File lib/middleman-core/sitemap/extensions/proxies.rb, line 149
def eql?(other)
  other.path == path
end
hash() click to toggle source

Two configurations are equal if they reference the same path

# File lib/middleman-core/sitemap/extensions/proxies.rb, line 154
def hash
  path.hash
end
path=(p) click to toggle source
# File lib/middleman-core/sitemap/extensions/proxies.rb, line 128
def path=(p)
  @path = ::Middleman::Util.normalize_path(p)
end
target=(t) click to toggle source
# File lib/middleman-core/sitemap/extensions/proxies.rb, line 134
def target=(t)
  @target = ::Middleman::Util.normalize_path(t)
end