Module: Legitbot::Validators::Domains
- Included in:
- BotMatch
- Defined in:
- lib/legitbot/validators/domains.rb
Overview
In a bot matcher: ‘domains ’search.msn.com’, …‘ `domains ’googlebot.com’, reverse: false`
‘reverse` is true by default.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
16 17 18 |
# File 'lib/legitbot/validators/domains.rb', line 16 def included(base) base.extend ClassMethods end |
Instance Method Details
#valid_domain? ⇒ Boolean
21 22 23 |
# File 'lib/legitbot/validators/domains.rb', line 21 def valid_domain? self.class.valid_domain?(@ip) end |