Ruby scanner