method

new

rails latest stable - Class: ActiveModel::Type::Value
new(precision: nil, limit: nil, scale: nil)
public

Initializes a type with three basic configuration settings: precision, limit, and scale. The Value base class does not define behavior for these settings. It uses them for equality comparison and hash key generation only.