Class: ACL::ACLList
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/drb/acl.rb |
Overview
Class Method Summary
-
.new ⇒ ACLList
constructor
Creates an empty
ACLList
.
Instance Method Summary
-
#add(str)
Adds
str
as an ACLEntry in this list. -
#match(addr)
Matches
addr
against each ACLEntry in this list.
Constructor Details
.new ⇒ ACLList
Creates an empty ACLList
# File 'lib/drb/acl.rb', line 129
def initialize @list = [] end
Instance Method Details
#add(str)
Adds str
as an ACLEntry in this list
#match(addr)
Matches addr
against each ACLEntry in this list.
# File 'lib/drb/acl.rb', line 138
def match(addr) @list.each do |e| return true if e.match(addr) end false end