Class: Middleman::Sitemap::Extensions::RequestEndpoints::EndpointDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Middleman::Sitemap::Extensions::RequestEndpoints::EndpointDescriptor
- Defined in:
- 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
12 13 14 |
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 12 def block @block end |
#path ⇒ Object
Returns the value of attribute path
12 13 14 |
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 12 def path @path end |
#request_path ⇒ Object
Returns the value of attribute request_path
12 13 14 |
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 12 def request_path @request_path end |
Instance Method Details
#execute_descriptor(app, resources) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 13 def execute_descriptor(app, resources) r = EndpointResource.new( app.sitemap, path, request_path ) r.output = block if block resources + [r] end |