Class: Flags::SymbolFlag
Overview
A flag with a symbol 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) ⇒ SymbolFlag
constructor
A new instance of SymbolFlag.
Methods inherited from Flag
#add_validator, #default?, #restore_default
Constructor Details
#initialize(name, default_value, description, definition_file) ⇒ SymbolFlag
Returns a new instance of SymbolFlag.
501 502 503 |
# File 'lib/flags.rb', line 501 def initialize(name, default_value, description, definition_file) super(:symbol, name, default_value, description, definition_file, [ClassValidator.new(Symbol)]) end |