Class: IpFilter::WhiteList

Inherits:
List
  • Object
show all
Defined in:
lib/ip_filter/white_list.rb

Instance Method Summary collapse

Methods inherited from List

#any?, #initialize

Constructor Details

This class inherits a constructor from IpFilter::List

Instance Method Details

#approved?(remote_ip) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/ip_filter/white_list.rb', line 5

def approved?(remote_ip)
  any?(remote_ip)
end