Class: Flags::FloatFlag
Overview
A flag with a floating-point numeric 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) ⇒ FloatFlag
constructor
A new instance of FloatFlag.
Methods inherited from Flag
#add_validator, #default?, #restore_default
Constructor Details
#initialize(name, default_value, description, definition_file) ⇒ FloatFlag
Returns a new instance of FloatFlag.
538 539 540 |
# File 'lib/flags.rb', line 538 def initialize(name, default_value, description, definition_file) super(:float, name, default_value, description, definition_file, [ClassValidator.new(Float)]) end |