Eno::Loaders ยป #comma_separated
comma_separated โ array
comma_separated_items โ array
comma_separated_list โ array
Splits a comma-separated listing (single line, think a list of tags e.g.) into an array and strips whitespace.
enoTags: Coffee, Desk, Flavor
Categories: Computing , High performance , Cluster
rubydocument = Eno.parse(input)
document.comma_separated('Tags') #=> ['Coffee', 'Desk', 'Flavor']
document.comma_separated('Categories') #=> ['Computing', 'High performance', 'Cluster']