Module DataMapper::Property::Typecast::Numeric
In: lib/dm-core/property/typecast/numeric.rb

Methods

Public Instance methods

Match numeric string

@param [to_str, Numeric] value

  value to typecast

@param [Symbol] method

  method to typecast with

@return [Numeric]

  number if matched, value if no match

@api private

[Validate]