Class: Middleman::Sitemap::Extensions::RequestEndpoints
- Inherits:
-
ConfigExtension
- Object
- Extension
- ConfigExtension
- Middleman::Sitemap::Extensions::RequestEndpoints
- Defined in:
- lib/middleman-core/sitemap/extensions/request_endpoints.rb
Defined Under Namespace
Classes: EndpointDescriptor
Constant Summary
Constants included from Contracts
Instance Attribute Summary
Attributes inherited from Extension
Instance Method Summary collapse
Methods inherited from ConfigExtension
#after_configuration, #initialize, #manipulate_resource_list
Methods inherited from Extension
activated_extension, #add_exposed_to_context, #after_build, #after_configuration, #after_extension_activated, after_extension_activated, #before_build, #before_configuration, clear_after_extension_callbacks, config, define_setting, expose_to_application, expose_to_config, expose_to_template, global_config, helpers, #initialize, #manipulate_resource_list, option, #ready, resources
Methods included from Contracts
Constructor Details
This class inherits a constructor from Middleman::ConfigExtension
Instance Method Details
#endpoint(path, opts = {}, &block) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 30 def endpoint(path, opts={}, &block) if block_given? EndpointDescriptor.new(path, path, block) else EndpointDescriptor.new(path, opts[:path] || path, nil) end end |