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

Inherits:
Object
  • Object
show all
Includes:
SimpleCache
Defined in:
lib/eac_ruby_utils/console/configs.rb

Constant Summary collapse

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

Constants included from SimpleCache

SimpleCache::UNCACHED_METHOD_PATTERN

Instance Method Summary collapse

Methods included from SimpleCache

#method_missing, #reset_cache, #respond_to_missing?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EacRubyUtils::SimpleCache

Instance Method Details

#[](key) ⇒ Object


111
112
113
# File 'lib/eac_ruby_utils/console/configs.rb', line 111

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

#request_input_optionsObject


115
116
117
# File 'lib/eac_ruby_utils/console/configs.rb', line 115

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