Done.

I've done it this way to avoid having both 'click' & 'double_click' hardcoded string but I would've liked the check of double click be explicit like the second snippet below. Thoughts?

Current

    if click_type == 'click'
      @last_click = node.click()
    else
      @last_click = node.double_click()

Preferred

    if click_type == 'double_click'
      @last_click = node.double_click()
    else
      @last_click = node.click()