Class: NetCrawl::PollMap
- Inherits:
-
Object
- Object
- NetCrawl::PollMap
- Defined in:
- lib/netcrawl/pollmap.rb
Instance Method Summary collapse
- #include?(addr) ⇒ Boolean
-
#initialize ⇒ PollMap
constructor
A new instance of PollMap.
Constructor Details
Instance Method Details
#include?(addr) ⇒ Boolean
9 10 11 |
# File 'lib/netcrawl/pollmap.rb', line 9 def include? addr @poll.any? { |cidr| cidr.include? addr } end |