Class: OptimistXL::StringOption
Overview
Option class for handling Strings.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Option
#default, #long, #max_args, #min_args, #multi_given, #name, #permitted, #permitted_response, #short
Instance Method Summary collapse
Methods inherited from Option
#array_default?, #callback, #compatible_with?, create, #desc, #description_with_default, #description_with_permitted, #doesnt_need_autogen_short, #educate, #format_stdio, #full_description, handle_long_opt, handle_short_opt, #initialize, #multi, #opts, #opts=, #permitted_type_valid?, #permitted_valid_string, #permitted_value?, register_alias, #required?, #validate_permitted
Constructor Details
This class inherits a constructor from OptimistXL::Option
Instance Method Details
#parse(paramlist, _neg_given) ⇒ Object
1202 1203 1204 |
# File 'lib/optimist_xl.rb', line 1202 def parse(paramlist, _neg_given) paramlist.map { |pg| pg.map(&:to_s) } end |
#type_format ⇒ Object
1201 |
# File 'lib/optimist_xl.rb', line 1201 def type_format ; "=<s>" ; end |