Class: Rack::DomainFilter::Configuration

Inherits:
Object
  • Object
show all
Includes:
ConfigurationDSL
Defined in:
lib/rack/domain_filter/ext/configuration.rb

Overview

private

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationDSL

#after_request, #catch, #filter_for, #no_match, #skip_path_for

Constructor Details

#initializeConfiguration

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_listObject

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_mappingObject

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_patternsObject

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_mappingObject

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_passthroughObject



50
51
52
# File 'lib/rack/domain_filter/ext/configuration.rb', line 50

def allow_passthrough
  @allow_passthrough = true
end

#allow_passthrough?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/rack/domain_filter/ext/configuration.rb', line 54

def allow_passthrough?
  @allow_passthrough
end

#no_match_blockObject



46
47
48
# File 'lib/rack/domain_filter/ext/configuration.rb', line 46

def no_match_block
  @no_match
end