Method: Browser::DOM::Node#child

Defined in:
opal/browser/dom/node.rb

#childNode? (readonly)

Returns the first child of the node.

Returns:

  • (Node?)

    the first child of the node



266
267
268
# File 'opal/browser/dom/node.rb', line 266

def child
  children.first
end