Class: ACL::ACLList
- Inherits:
-
Object
- Object
- ACL::ACLList
- Defined in:
- lib/drb/acl.rb
Instance Method Summary collapse
- #add(str) ⇒ Object
-
#initialize ⇒ ACLList
constructor
A new instance of ACLList.
- #match(addr) ⇒ Object
Constructor Details
#initialize ⇒ ACLList
Returns a new instance of ACLList.
63 64 65 |
# File 'lib/drb/acl.rb', line 63 def initialize @list = [] end |
Instance Method Details
#add(str) ⇒ Object
76 77 78 |
# File 'lib/drb/acl.rb', line 76 def add(str) @list.push(ACLEntry.new(str)) end |
#match(addr) ⇒ Object
68 69 70 71 72 73 |
# File 'lib/drb/acl.rb', line 68 def match(addr) @list.each do |e| return true if e.match(addr) end false end |