Instantly share code, notes, and snippets.
The second example is parsed like this:
That is, the block is an argument to include, not to Module.new.
It's failing because the block precedence is being applied wrongly in the first. The block is being consumed by include in one case and Module.new in the other.