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
stras an ACLEntry in this list. -
#match(addr)
Matches
addragainst each ACLEntry in this list.
Constructor Details
.new ⇒ ACLList
Creates an empty ACLList
# File 'lib/drb/acl.rb', line 122
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 131
def match(addr) @list.each do |e| return true if e.match(addr) end false end