Class: ACL::ACLList

Inherits:
Object
  • Object
show all
Defined in:
lib/drb/acl.rb

Instance Method Summary collapse

Constructor Details

#initializeACLList

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