Class: QB::Options::Option::OptionParserConcern::TypeAcceptable

Inherits:
Object
  • Object
show all
Defined in:
lib/qb/options/option/option_parser_concern.rb

Class Method Summary collapse

Class Method Details

.nameObject



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

.typeObject



54
55
56
# File 'lib/qb/options/option/option_parser_concern.rb', line 54

def self.type
  @type
end