Eno::List » #elements

elements → array

Retrieve the items of this list as Eno::Field elements (instead of their direct values) in sequential order.

enonumbers:
- 6
- 8
- 19
rubylist = Eno.parse(input).element('numbers')

list.elements
  #=> [ #<Eno::Field value="6">, #<Eno::Field value="8">, #<Eno::Field value="19"> ]

Return value

An array containing the items of this list as Eno::Field elements.