Eno::Loaders ยป #number

number โ†’ Integer
number_items โ†’ array
number_list โ†’ array

An alias for the integer loader.

enogood: -13
bad: 0.3
rubydocument = Eno.parse(input)

document.number('good')  #=> -13

document.number('bad')
  # raises an error: 'bad' must contain an integer, for instance '42' or '-21'.