Class: IP
- Inherits:
-
Object
- Object
- IP
- Defined in:
- lib/spf/model.rb
Instance Method Summary collapse
Instance Method Details
#contains?(ip_address) ⇒ Boolean
8 9 10 11 12 |
# File 'lib/spf/model.rb', line 8 def contains?(ip_address) return ( self.to_irange.first <= ip_address.to_i and self.to_irange.last >= ip_address.to_i) end |