Eno::Section » #lists
lists(name) → array
Retrieve lists with the specified name from this current section.
enoroute:
- vienna
- paris
- rome
route:
- moscow
- riga
rubydocument = Eno.parse(input)
routes = document.lists('route')
routes.each do |route|
puts route.items
end
# prints ...
# [ 'vienna', 'paris', 'rome']
# [ 'moscow', 'riga' ]
Parameters
nameA string specifying the name of the lists to retrieve.
Return value
An array of Eno::List
s.