class Formulario::Field::Integer
Private Class Methods
build(raw_value)
click to toggle source
# File lib/formulario/fields/integer.rb, line 6 def self.build(raw_value) new Integer(raw_value) rescue ArgumentError, TypeError => e ExceptionalValue.new(raw_value, reasons: ['needs to represent an integer']) end