Raycasting with Linesegments2 or line2

How can I use raycast with line2segments and line2?

Raycasting for LineSegments2 (and thus Line2) was added with R112. Have you already tried the classic raycasting approach?

var intersects = raycaster.intersectObject( line );