new(str) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/drb/acl.rb, line 13
    def initialize(str)
      if str == '*' or str == 'all'
        @pat = [:all]
      elsif str.include?('*')
        @pat = [:name, dot_pat(str)]
      else
        begin
          @pat = [:ip, IPAddr.new(str)]
        rescue ArgumentError
          @pat = [:name, dot_pat(str)]
        end
      end
    end
Register or log in to add new notes.