Class: Menu::Parser
- Inherits:
-
Object
- Object
- Menu::Parser
- Defined in:
- lib/menu/parser.rb
Overview
Parse user input
Class Method Summary collapse
- .parse_config_arguments ⇒ Object
-
.parse_main_arguments ⇒ Object
Parse command-line arguments for main menu.
- .parse_scheduled_arguments ⇒ Object
Class Method Details
.parse_config_arguments ⇒ Object
23 24 25 |
# File 'lib/menu/parser.rb', line 23 def self.parse_config_arguments Menu::Config.new(Menu::Generator.) end |
.parse_main_arguments ⇒ Object
Parse command-line arguments for main menu
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/menu/parser.rb', line 10 def self.parse_main_arguments = Menu::Generator. extra_input = { config: [:config], scheduled: [:scheduled] } extra_procs = { config: proc { parse_config_arguments }, scheduled: proc { parse_scheduled_arguments } } Menu::Main.new(, extra_input, extra_procs) end |