181: def allowed?(name, ip, args = {})
182: return :dunno if acl_type == :regex and not @methods.include?(args[:method])
183: return :dunno if acl_type == :regex and @environment.size > 0 and not @environment.include?(args[:environment])
184: return :dunno if acl_type == :regex and not @authentication.nil? and args[:authenticated] != @authentication
185:
186: begin
187:
188: interpolate(args[:match]) if acl_type == :regex and args[:match]
189: res = super(name,ip)
190: ensure
191: reset_interpolation if acl_type == :regex
192: end
193: res
194: end