Adding `::` as a semantic trigger for Ruby

Fixes #367.