lib/api.rb
# constant - Returns or overrides a constant value.
# When no parameter is given, it returns the value of the constant.
# When giving a value as parameter, it sets the constant to the given value.
# To reset the constant to the default value, the parameter "reset" should be used.
# - @param [String] name - The class and name of the constant. (format should be Class.CONSTANT)
# - @param [Integer] value - The new value of the constant or "reset". (optional)
Returns or overrides a constant value.
When no parameter is given, it returns the value of the constant.
When giving a value as parameter, it sets the constant to the given value.
To reset the constant to the default value, the parameter "reset" should be used.
@param [String] name - The class and name of the constant. (format should be Class.CONSTANT)
@param [Integer] value - The new value of the constant or "reset". (optional)
Returns or overrides a constant value . When no parameter is given it returns the value of the constant . When giving a value as parameter it sets the constant to the given value . To reset the constant to the default value the parameter " reset " should be used . @param [ String ] name - The class and name of the constant . ( format should be Class . CONSTANT ) @param [ Integer ] value - The new value of the constant or " reset " . ( optional )
def constant(name, value = nil)
    if value
      result = @rpc.request("constant", name, value)
    else
      result = @rpc.request("constant", name)
    end
    return result
  end
def constant ( name , value = nil ) if value result = @rpc . request ( "constant" , name , value ) else result = @rpc . request ( "constant" , name ) end return result end
constant - Returns or overrides a constant value.
constant - Returns or overrides a constant value .
name
<not_specific>
value
<not_specific>