Class: QB::Options::Option::OptionParserConcern::TypeAcceptable
- Inherits:
-
Object
- Object
- QB::Options::Option::OptionParserConcern::TypeAcceptable
- Defined in:
- lib/qb/options/option/option_parser_concern.rb
Class Method Summary collapse
Class Method Details
.name ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/qb/options/option/option_parser_concern.rb', line 43 def self.name if self == TypeAcceptable "TypeAcceptable" else "TypeAcceptable<#{ type }>" end end |
.parse(string) ⇒ Object
58 59 60 |
# File 'lib/qb/options/option/option_parser_concern.rb', line 58 def self.parse string type.from_s string end |
.type ⇒ Object
54 55 56 |
# File 'lib/qb/options/option/option_parser_concern.rb', line 54 def self.type @type end |