Module: Toys::FlagGroup
- Defined in:
- core-docs/toys/flag_group.rb
Overview
Defined in the toys-core gem
A FlagGroup is a group of flags with the same requirement settings.
Defined Under Namespace
Classes: AtLeastOne, AtMostOne, Base, ExactlyOne, Optional, Required
Class Method Summary collapse
-
.create(type: nil, name: nil, desc: nil, long_desc: nil) ⇒ Toys::FlagGroup::Base
Create a flag group object of the given type.
Class Method Details
.create(type: nil, name: nil, desc: nil, long_desc: nil) ⇒ Toys::FlagGroup::Base
Create a flag group object of the given type.
The type should be one of the following symbols:
-
:optional
All flags in the group are optional -
:required
All flags in the group are required -
:exactly_one
Exactly one flag in the group must be provided -
:at_least_one
At least one flag in the group must be provided -
:at_most_one
At most one flag in the group must be provided
30 31 32 |
# File 'core-docs/toys/flag_group.rb', line 30 def self.create(type: nil, name: nil, desc: nil, long_desc: nil) # Source available in the toys-core gem end |