This is not exactly intuitive for those with development experience outside of ruby. Typically in most languages you'll see true and false values denoted as a Boolean datatype rather than TrueClass, or FalseClass. Same thing with integers, which Ruby denotes as a Fixnum.
It would be nice to support multiple names for the same datatype, such as having Fixnum, Integer, Int as accepted_types values for a particular key that expects an integer number.
At the moment the
accepted_types
key takes on a list of datatypes based on existing Ruby datatypes, like those below.This is not exactly intuitive for those with development experience outside of ruby. Typically in most languages you'll see
true
andfalse
values denoted as aBoolean
datatype rather thanTrueClass
, orFalseClass
. Same thing with integers, which Ruby denotes as aFixnum
.It would be nice to support multiple names for the same datatype, such as having
Fixnum
,Integer
,Int
asaccepted_types
values for a particular key that expects an integer number.