allow_socket?

allow_socket?(soc) Instance Public methods Allow connections from Socket soc?

allow_addr?

allow_addr?(addr) Instance Public methods Allow connections from addrinfo addr? It must be formatted like Socket#peeraddr: ["AF_INET", 10, "lc630", "192.0.2.1"]

new

new(list=nil, order = DENY_ALLOW) Class Public methods Creates a new ACL from list with an evaluation order of DENY_ALLOW or ALLOW_DENY. An ACL list is an Array of âallowâ or âdenyâ and an address or address mask or âallâ or â*â to match any address: %w[ deny all allow 192.0.2.2 allow 192.0.2.128/26 ]

match

match(addr) Instance Public methods Matches addr against each ACLEntry in this list.

add

add(str) Instance Public methods Adds str as an ACLEntry in this list

new

new() Class Public methods Creates an empty ACLList

match

match(addr) Instance Public methods Matches addr against this entry.

new

new(str) Class Public methods Creates a new entry using str. str may be â*â or âallâ to match any address, an IP address string to match a specific address, an IP address mask per IPAddr, or one containing â*â to match part of an IPv4 address.

abbrev

abbrev(words, pattern = nil) Class Public methods Given a set of strings, calculate the set of unambiguous abbreviations for those strings, and return a hash where the keys are all the possible abbreviations and the values are the full strings. Thus, given words is âcarâ and âconeâ, the keys pointing to âcarâ would be âcaâ and âcarâ, while those pointing to âconeâ would be âcoâ, âconâ, and âconeâ. require 'abbrev' Abbrev.abbrev(['car', 'cone']) #=> {"ca"=>"car", "con"=>"c