Class: Middleman::Sitemap::Extensions::ProxyDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Middleman::Sitemap::Extensions::ProxyDescriptor
- Defined in:
- lib/middleman-core/sitemap/extensions/proxies.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#path ⇒ Object
Returns the value of attribute path.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Instance Attribute Details
#metadata ⇒ Object
Returns the value of attribute metadata
74 75 76 |
# File 'lib/middleman-core/sitemap/extensions/proxies.rb', line 74 def @metadata end |
#path ⇒ Object
Returns the value of attribute path
74 75 76 |
# File 'lib/middleman-core/sitemap/extensions/proxies.rb', line 74 def path @path end |
#target ⇒ Object
Returns the value of attribute target
74 75 76 |
# File 'lib/middleman-core/sitemap/extensions/proxies.rb', line 74 def target @target end |
Instance Method Details
#to_resource(app) ⇒ Object
75 76 77 78 79 80 81 82 83 84 |
# File 'lib/middleman-core/sitemap/extensions/proxies.rb', line 75 def to_resource(app) ProxyResource.new(app.sitemap, path, target).tap do |p| md = .dup p.( locals: md.delete(:locals) || {}, page: md.delete(:data) || {}, options: md ) end end |