Eno::Loaders ยป #string

string โ†’ string
string_items โ†’ array
string_list โ†’ array

Technically not a loader, but an alias for the standard accessors (which always return strings), you can use it if you prefer a 100% type-oriented value access terminology in your code. Note that this is not even a noop function, but really just a direct alias, so using it instead of e.g. field does not incur any performance drawback.

enoname: Alice
number: 13
rubydocument = Eno.parse(input)

document.string('name')  #=> 'Alice'
document.string('number')  #=> '13'

# .... these are completely identical to ...

document.field('name')  #=> 'Alice'
document.field('number')  #=> '13'