Method: CiscoAclIntp::AceSrcDstSpec#contains?

Defined in:
lib/cisco_acl_intp/acespec_srcdst.rb

#contains?(other) ⇒ Boolean

Check address and port number contains this object or not.

Parameters:

Returns:

  • (Boolean)

Raises:



62
63
64
65
# File 'lib/cisco_acl_intp/acespec_srcdst.rb', line 62

def contains?(other)
  contains_address?(other.ip_spec) &&
    contains_port?(other.port_spec)
end