class Schemas::Types::IntegerType
Public Instance Methods
errors(string)
click to toggle source
# File lib/schemas/types/integer_type.rb, line 4 def errors(string) begin Integer(string) [] rescue ArgumentError [:not_an_integer] end end
parse(string)
click to toggle source
# File lib/schemas/types/integer_type.rb, line 13 def parse(string) Integer(string) end