Class: CiscoAclIntp::AcePortOpStrictAny

Inherits:
AcePortOpAny show all
Defined in:
lib/cisco_acl_intp/acespec_port_opr.rb

Overview

STRICT-ANY operator class

Constant Summary

Constants inherited from AccessControlContainer

CiscoAclIntp::AccessControlContainer::TERM_COLOR_TABLE

Instance Attribute Summary

Attributes inherited from AcePortOperatorBase

#begin_port, #end_port, #operator

Instance Method Summary collapse

Methods inherited from AcePortOpAny

#to_s

Methods inherited from AcePortOperatorBase

#==, #check_any_operator, #contains_any?, #contains_eq?, #contains_gt?, #contains_lt?, #contains_neq?, #contains_range?, #contains_strict_any?, #to_s

Methods inherited from AccessControlContainer

#clean_acl_string, disable_color, #generate_tag_footer, #generate_tag_header, #generate_tagged_str, #method_missing, #to_s

Constructor Details

#initialize(*args) ⇒ AcePortOpStrictAny

Constructor



32
33
34
35
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 32

def initialize(*args)
  super
  @operator = :strict_any
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CiscoAclIntp::AccessControlContainer

Instance Method Details

#contains?(other) ⇒ Boolean

STRICT_ANY contains other_port?

Parameters:

Returns:

  • (Boolean)


40
41
42
43
44
45
46
47
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 40

def contains?(other)
  case other
  when AcePortOpAny, AcePortOpStrictAny
    true
  else
    false
  end
end