Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
ACL.new
new(list=nil, order = DENY_ALLOW)
lib/drb/acl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/drb/acl.rb, line 179
def initialize(list=nil, order = DENY_ALLOW)
@order = order
@deny = ACLList.new
@allow = ACLList.new
install_list(list) if list
end
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:
Example
%w[
deny all
allow 192.0.2.2
allow 192.0.2.128/26
]