Class: Flags::StringFlag
Overview
A flag with a string value.
Instance Attribute Summary
Attributes inherited from Flag
#default_value, #definition_file, #description, #is_explicit, #name, #type, #value
Instance Method Summary collapse
-
#initialize(name, default_value, description, definition_file) ⇒ StringFlag
constructor
A new instance of StringFlag.
Methods inherited from Flag
#add_validator, #default?, #restore_default
Constructor Details
#initialize(name, default_value, description, definition_file) ⇒ StringFlag
Returns a new instance of StringFlag.
491 492 493 |
# File 'lib/flags.rb', line 491 def initialize(name, default_value, description, definition_file) super(:string, name, default_value, description, definition_file, [ClassValidator.new(String)]) end |