Eno::Field » #raw

raw → object or value

Retrieve a native object representation of the value. The representation differs depending on whether there is a name (e.g. for a field value), or not (applies only to list item values).

enocolor: blue
numbers:
- 13
- 42
rubydocument = Eno.parse(input)

document.element('color').raw  #=> { 'color' => 'blue' }

list_items = document.element('numbers').elements
list_items.first.raw  #=> '13'

Return value

A native representation of the value element.