Eno::Section » #fields
fields(name) → array
Retrieve fields with the specified name from this current section.
enocolor: blue
color: red
color: orange
rubydocument = Eno.parse(input)
colors = document.fields('color')
colors.each do |color|
puts color.value
end
Parameters
nameA string specifying the name of the fields to retrieve.
Return value
An array of Eno::Field
s.