Class: Formalism::Form::Coercion::Integer

Inherits:
Numeric
  • Object
show all
Defined in:
lib/formalism/form/coercion/integer.rb

Overview

Class for coercion to Integer

Constant Summary collapse

VALUE_REGEXP =
wrap_value_regexp '[-+]?\d+'
CONVERSION_METHOD =
:to_i

Method Summary

Methods inherited from Base

#initialize, #result

Constructor Details

This class inherits a constructor from Formalism::Form::Coercion::Base