class Stannum::Constraints::Types::FloatType

A FloatType constraint asserts that the object is a Float.

Public Class Methods

new(**options) click to toggle source

@param options [Hash<Symbol, Object>] Configuration options for the

constraint. Defaults to an empty Hash.
Calls superclass method Stannum::Constraints::Type::new
# File lib/stannum/constraints/types/float_type.rb, line 10
def initialize(**options)
  super(::Float, **options)
end