Module: Configuration::ConditionalInclusion
- Included in:
- Identify, OutputMultiBase::OutputSpec, SourceStoreBase, Thumbnail, Thumbnail::ThumbnailSpec
- Defined in:
- lib/httpimagestore/configuration/handler.rb
Instance Method Summary collapse
- #excluded?(request_state) ⇒ Boolean
- #included?(request_state) ⇒ Boolean
- #inclusion_matcher(matcher) ⇒ Object
Instance Method Details
#excluded?(request_state) ⇒ Boolean
203 204 205 |
# File 'lib/httpimagestore/configuration/handler.rb', line 203 def excluded?(request_state) not included? request_state end |
#included?(request_state) ⇒ Boolean
196 197 198 199 200 201 |
# File 'lib/httpimagestore/configuration/handler.rb', line 196 def included?(request_state) return true unless @matchers @matchers.any? do |matcher| matcher.included?(request_state) end end |
#inclusion_matcher(matcher) ⇒ Object
192 193 194 |
# File 'lib/httpimagestore/configuration/handler.rb', line 192 def inclusion_matcher(matcher) (@matchers ||= []) << matcher if matcher end |