It took me a while to figure the design out. I think this comment here would help

    # elsif_mode is enabled iff the node being Node#compile'd
    # is an YCP::If directly inside another YCP::If's else.
    # It results in Ruby::If#elsif == true