Eno::Loaders ยป #integer
integer โ Integer
integer_items โ array
integer_list โ array
Accepts integers only (float is not clipped but triggers an error), returns an integer.
enogood: -13
bad: 0.3
rubydocument = Eno.parse(input)
document.integer('good') #=> -13
document.integer('bad')
# raises an error: 'bad' must contain an integer, for instance '42' or '-21'.