Method: CiscoAclIntp::AccessControlContainer#method_missing
- Defined in:
- lib/cisco_acl_intp/acc.rb
#method_missing(name, *args) ⇒ Object (private)
Generate tagging method dynamically.
96 97 98 99 100 101 102 103 |
# File 'lib/cisco_acl_intp/acc.rb', line 96 def method_missing(name, *args) name.to_s =~ /^tag_(.+)$/ && tag = Regexp.last_match(1).intern if TERM_COLOR_TABLE.key?(tag) generate_tagged_str(tag, *args) else super end end |