Class: EacCli::OldConfigs::ReadEntryOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_cli/old_configs/read_entry_options.rb

Constant Summary collapse

DEFAULT_VALUES =
{
  before_input: nil, bool: false, list: false, noecho: false, noenv: false, noinput: false,
  required: true, store: true, validator: nil
}.freeze

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



19
20
21
# File 'lib/eac_cli/old_configs/read_entry_options.rb', line 19

def [](key)
  values.fetch(key.to_sym)
end

#request_input_optionsObject



23
24
25
# File 'lib/eac_cli/old_configs/read_entry_options.rb', line 23

def request_input_options
  values.slice(:bool, :list, :noecho)
end