Class | Slop::Option |
In: |
lib/slop/option.rb
|
Parent: | Object |
DEFAULT_OPTIONS | = | { :argument => false, :optional_argument => false, :tail => false, :default => nil, :callback => nil, :delimiter => ',', :limit => 0, :match => nil, :optional => true, :required => false, :as => String, :autocreated => false | The default Hash of configuration options this class uses. |
config | [R] | |
count | [RW] | |
description | [R] | |
long | [R] | |
short | [R] | |
types | [R] | |
value | [W] |
Incapsulate internal option information, mainly used to store option specific configuration data, most of the meat of this class is found in the value method.
slop - The instance of Slop tied to this Option. short - The String or Symbol short flag. long - The String or Symbol long flag. description - The String description text. config - A Hash of configuration options. block - An optional block used as a callback.
Call this options callback if one exists, and it responds to call().
Returns nothing.