Class: CiscoAclIntp::AcePortOpGt
- Inherits:
-
AceUnaryOpBase
- Object
- AccessControlContainer
- AceSpecBase
- AcePortOperatorBase
- AceUnaryOpBase
- CiscoAclIntp::AcePortOpGt
- Defined in:
- lib/cisco_acl_intp/acespec_port_opr.rb
Overview
GREATER_THAN 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
-
#contains_eq?(other) ⇒ Boolean
private
GT contains EQ?.
-
#contains_gt?(other) ⇒ Boolean
private
GT contains GT?.
-
#contains_neq?(other) ⇒ Boolean
private
GT contains NEQ?.
-
#contains_range?(other) ⇒ Boolean
private
GT contains RANGE?.
-
#initialize(*args) ⇒ AcePortOpGt
constructor
Constructor.
Methods inherited from AcePortOperatorBase
#==, #check_any_operator, #contains?, #contains_any?, #contains_lt?, #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) ⇒ AcePortOpGt
Constructor
154 155 156 157 |
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 154 def initialize(*args) super @operator = :gt end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CiscoAclIntp::AccessControlContainer
Instance Method Details
#contains_eq?(other) ⇒ Boolean (private)
GT contains EQ?
164 165 166 |
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 164 def contains_eq?(other) @begin_port < other.port end |
#contains_gt?(other) ⇒ Boolean (private)
GT contains GT?
178 179 180 |
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 178 def contains_gt?(other) @begin_port <= other.port end |
#contains_neq?(other) ⇒ Boolean (private)
GT contains NEQ?
171 172 173 |
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 171 def contains_neq?(other) @begin_port.min? && other.port.min? end |
#contains_range?(other) ⇒ Boolean (private)
GT contains RANGE?
185 186 187 |
# File 'lib/cisco_acl_intp/acespec_port_opr.rb', line 185 def contains_range?(other) @begin_port < other.begin_port end |