Class: EacRubyUtils::Console::Configs::ReadEntryOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_utils/console/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


22
23
24
# File 'lib/eac_ruby_utils/console/configs/read_entry_options.rb', line 22

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

#request_input_optionsObject


26
27
28
# File 'lib/eac_ruby_utils/console/configs/read_entry_options.rb', line 26

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