Class: Middleman::Sitemap::Extensions::RequestEndpoints::EndpointDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Middleman::Sitemap::Extensions::RequestEndpoints::EndpointDescriptor
- Defined in:
- middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#path ⇒ Object
Returns the value of attribute path.
-
#request_path ⇒ Object
Returns the value of attribute request_path.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
14 15 16 |
# File 'middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 14 def block @block end |
#path ⇒ Object
Returns the value of attribute path
14 15 16 |
# File 'middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 14 def path @path end |
#request_path ⇒ Object
Returns the value of attribute request_path
14 15 16 |
# File 'middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 14 def request_path @request_path end |
Instance Method Details
#execute_descriptor(app, resource_list) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 15 def execute_descriptor(app, resource_list) r = EndpointResource.new( app.sitemap, path, request_path ) r.output = block if block resource_list.add! r end |