Module: Basilisk::Parser

Extended by:
Parser
Included in:
Parser
Defined in:
lib/basilisk/parser.rb

Overview

Parses YAML config file and instantiates specified processor classes.

Instance Method Summary collapse

Instance Method Details

#get_options(opt_file) ⇒ Object



6
7
8
9
10
11
# File 'lib/basilisk/parser.rb', line 6

def get_options(opt_file)
  yaml_opts         = open_yaml_file(opt_file)
  search_opts       = assign_options(yaml_opts)
  validate_options(search_opts)
  return search_opts
end