lib/active_configuration/option.rb
# Sets a specific format that the value of this option must conform
# to. Allowed formats include: 'string', 'fixnum', 'float',  'boolean',
# 'email', 'url' or a /regular expression/.
#
# @param [String, Regexp] value the format this option must be given in.
Sets a specific format that the value of this option must conform
to.
Sets a specific format that the value of this option must conform to .
def format(value)
      run_callbacks :validate do
        @allowed_format = (value.is_a?(Symbol) ? value.to_s : value)
      end
    end
def format ( value ) run_callbacks :validate do @allowed_format = ( value . is_a? ( Symbol ) ? value . to_s : value ) end end
Sets a specific format that the value of this option must conform
to.
Sets a specific format that the value of this option must conform to .
value
<not_specific>
<not_specific>
value the format this option must be given in.
value the format this option must be given in .