Eno::Loaders ยป #boolean

boolean โ†’ boolean
boolean_items โ†’ array
boolean_list โ†’ array

Accepts true, false, yes and no, returns a boolean (or raises an error for invalid values).

enoenabled: true

state_sequence:
- true
- false
- true

visible: not
rubydocument = Eno.parse(input)

document.boolean('enabled')  #=> true
document.boolean_list('state_sequence')  #=> [ true, false, true ]

document.boolean('visible')
  # raises an error: 'visible' must contain a boolean - allowed values are 'true', 'false', 'yes' and 'no'.