Class: CiscoAclIntp::ErrorAce

Inherits:
AceBase show all
Defined in:
lib/cisco_acl_intp/ace_base.rb

Overview

Error entry container

Constant Summary

Constants inherited from AceBase

AceBase::NO_SEQ_NUMBER

Constants inherited from AccessControlContainer

AccessControlContainer::TERM_COLOR_TABLE

Instance Attribute Summary collapse

Attributes inherited from AceBase

#seq_number

Instance Method Summary collapse

Methods inherited from AceBase

#<=>, #contains?, #seq_number?

Methods inherited from AccessControlContainer

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

Constructor Details

#initialize(line) ⇒ ErrorAce

Returns a new instance of ErrorAce.



54
55
56
57
# File 'lib/cisco_acl_intp/ace_base.rb', line 54

def initialize(line)
  super({})
  @line = line
end

Dynamic Method Handling

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

Instance Attribute Details

#lineObject

Returns the value of attribute line.



52
53
54
# File 'lib/cisco_acl_intp/ace_base.rb', line 52

def line
  @line
end

Instance Method Details

#to_sObject



59
60
61
# File 'lib/cisco_acl_intp/ace_base.rb', line 59

def to_s
  tag_error(format('!! error !! %s', @line))
end