src code

instance method Element.Layout#toObject

Element.Layout#toObject([keys...]) → Object
  • keys (String) – A space-separated list of keys to include.

Converts the layout hash to a plain object of key/value pairs, optionally including only the given keys.

Keys can be passed into this method as individual arguments _or_ separated by spaces within a string.