Module: AssLauncher::Cmd::Support::AcceptedValuesGet Private

Included in:
Abstract::Cli::Report::Row
Defined in:
lib/ass_launcher/cmd.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mixin for cli reporters

Instance Method Summary collapse

Instance Method Details

#accepted_values_getObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



73
74
75
# File 'lib/ass_launcher/cmd.rb', line 73

def accepted_values_get
  xxx_list_keys(:switch, param) + xxx_list_keys(:chose, param)
end

#xxx_list_keys(list, p) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



77
78
79
80
81
# File 'lib/ass_launcher/cmd.rb', line 77

def xxx_list_keys(list, p)
  list = p.send("#{list}_list".to_sym)
  return list.keys if list
  []
end