Method: CiscoAclIntp::Scanner#scan_line

Defined in:
lib/cisco_acl_intp/scanner.rb

#scan_line(str) ⇒ Array

Scan ACL from variable

Parameters:

  • str (String)

    Access list string

Returns:

  • (Array)

    Scanned tokens array (Queue)



29
30
31
32
33
34
35
# File 'lib/cisco_acl_intp/scanner.rb', line 29

def scan_line(str)
  run_scaner(str) do |each|
    each.chomp!
    # add word separator at end of line
    each.concat(' ')
  end
end