Class: Flags::IntFlag
Overview
A flag with an integer 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) ⇒ IntFlag
constructor
A new instance of IntFlag.
Methods inherited from Flag
#add_validator, #default?, #restore_default
Constructor Details
#initialize(name, default_value, description, definition_file) ⇒ IntFlag
Returns a new instance of IntFlag.
511 512 513 514 |
# File 'lib/flags.rb', line 511 def initialize(name, default_value, description, definition_file) super(:int, name, default_value, description, definition_file, [ClassValidator.new(Integer, Bignum, Fixnum)]) end |