Class: Trollop::StringOption
Overview
Option class for handling Strings.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Option
#default, #long, #multi_given, #name, #short
Instance Method Summary collapse
Methods inherited from Option
#array_default?, #callback, create, #desc, #description_with_default, #educate, #flag?, #initialize, #multi, #multi_arg?, #opts, #opts=, register_alias, #required?, #short?, #single_arg?
Constructor Details
This class inherits a constructor from Trollop::Option
Instance Method Details
#parse(paramlist, _neg_given) ⇒ Object
822 823 824 |
# File 'lib/trollop.rb', line 822 def parse(paramlist, _neg_given) paramlist.map { |pg| pg.map(&:to_s) } end |
#type_format ⇒ Object
821 |
# File 'lib/trollop.rb', line 821 def type_format ; "=<s>" ; end |