Class: Rack::DomainFilter::Configuration
- Inherits:
-
Object
- Object
- Rack::DomainFilter::Configuration
- Includes:
- ConfigurationDSL
- Defined in:
- lib/rack/domain_filter/ext/configuration.rb
Overview
private
Instance Attribute Summary collapse
-
#after_requests_list ⇒ Object
Returns the value of attribute after_requests_list.
-
#exception_catcher_mapping ⇒ Object
Returns the value of attribute exception_catcher_mapping.
-
#skip_path_patterns ⇒ Object
Returns the value of attribute skip_path_patterns.
-
#uri_mapping ⇒ Object
Returns the value of attribute uri_mapping.
Instance Method Summary collapse
- #allow_passthrough ⇒ Object
- #allow_passthrough? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #no_match_block ⇒ Object
Methods included from ConfigurationDSL
#after_request, #catch, #filter_for, #no_match, #skip_path_for
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
36 37 38 39 40 41 42 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 36 def initialize @uri_mapping = {} @after_requests_list = [] @exception_catcher_mapping = {} @no_match = nil @skip_path_patterns = [] end |
Instance Attribute Details
#after_requests_list ⇒ Object
Returns the value of attribute after_requests_list.
32 33 34 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 32 def after_requests_list @after_requests_list end |
#exception_catcher_mapping ⇒ Object
Returns the value of attribute exception_catcher_mapping.
33 34 35 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 33 def exception_catcher_mapping @exception_catcher_mapping end |
#skip_path_patterns ⇒ Object
Returns the value of attribute skip_path_patterns.
34 35 36 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 34 def skip_path_patterns @skip_path_patterns end |
#uri_mapping ⇒ Object
Returns the value of attribute uri_mapping.
31 32 33 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 31 def uri_mapping @uri_mapping end |
Instance Method Details
#allow_passthrough ⇒ Object
50 51 52 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 50 def allow_passthrough @allow_passthrough = true end |
#allow_passthrough? ⇒ Boolean
54 55 56 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 54 def allow_passthrough? @allow_passthrough end |
#no_match_block ⇒ Object
46 47 48 |
# File 'lib/rack/domain_filter/ext/configuration.rb', line 46 def no_match_block @no_match end |