Method: CiscoAclIntp::AccessControlContainer#generate_tagged_str

Defined in:
lib/cisco_acl_intp/acc.rb

#generate_tagged_str(tag, *args) ⇒ String (private)

Generate tagged ACL string.

Parameters:

  • tag (Symbol)

    Tag symbol.

  • args (Array)

    Array of argments.

Returns:

  • (String)

    Tagged string.



80
81
82
83
84
85
# File 'lib/cisco_acl_intp/acc.rb', line 80

def generate_tagged_str(tag, *args)
  tag_head = generate_tag_header(tag)
  tag_body = args.join
  tag_foot = generate_tag_footer
  [tag_head, tag_body, tag_foot].join
end