Class: ACL::ACLList (Ruby 2.7.2)
Description: Class : ACL::ACLList - Ruby 2.7.2

### Home Classes Methods

### In Files

- drb/acl.rb

### Parent

Object

### Methods

- ::new
- #add
- #match

### Class/Module Index

Quicksearch

- ACL
- ACL::ACLEntry
- ACL::ACLList
- DRb
- DRb::DRbArray
- DRb::DRbBadScheme
- DRb::DRbBadURI
- DRb::DRbConn
- DRb::DRbConnError
- DRb::DRbError
- DRb::DRbIdConv
- DRb::DRbIdConv
- DRb::DRbMessage
- DRb::DRbObject
- DRb::DRbObject
- DRb::DRbObservable
- DRb::DRbProtocol
- DRb::DRbRemoteError
- DRb::DRbSSLSocket
- DRb::DRbSSLSocket::SSLConfig
- DRb::DRbServerNotFound
- DRb::DRbTCPSocket
- DRb::DRbUNIXSocket
- DRb::DRbUndumped
- DRb::DRbUndumped
- DRb::DRbUnknown
- DRb::DRbUnknownError
- DRb::ExtServ
- DRb::ExtServManager
- DRb::GW
- DRb::GWIdConv
- DRb::Thread
- DRb::ThreadObject
- DRb::TimerIdConv
- DRb::TimerIdConv::TimerHolder2
- DRb::TimerIdConv::TimerHolder2::InvalidIndexError
- DRb::WeakIdConv
- DRb::WeakIdConv::WeakSet
- Object

No matching classes.

# ACL::ACLList

A list of ACLEntry objects. Used to implement the allow and deny halves of an ACL

### Public Class Methods

new() click to toggle source

Creates an empty ACLList

                   # File drb/acl.rb, line 129
    def initialize
      @list = []
    end

### Public Instance Methods

add(str) click to toggle source

Adds `str` as an ACLEntry in this list

                   # File drb/acl.rb, line 150
    def add(str)
      @list.push(ACLEntry.new(str))
    end

match(addr) click to toggle source

Matches `addr` against each ACLEntry in this list.

                   # File drb/acl.rb, line 138
    def match(addr)
      @list.each do |e|
        return true if e.match(addr)
      end
      false
    end