Class: TTYCoke::Parser

Inherits:
Object
  • Object
show all
Extended by:
Log
Defined in:
lib/ttycoke/parser.rb

Class Method Summary collapse

Methods included from Log

log_check_child_exit_status, log_debug, log_error, log_rescue

Class Method Details

.coke!(prgm, line) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/ttycoke/parser.rb', line 7

def coke! prgm, line
  program = raw_config_parser(prgm, line)
  if program[:exist]
    parse(program[:match])
  else
    return line
  end
end