Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

ACL::ACLEntry.new

new(str)

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.

IPAddr::InvalidPrefixError may be raised when an IP network address with an invalid netmask/prefix is given.

See also #dot_pat #dot_pat_str also in 3.3 · 3.2 · 3.1