Removes backward-incompatible syntax for 2.1.0-preview2

* https://bugs.ruby-lang.org/issues/9042
Merge pull request #1 from zamith/master

Removes backward-incompatible syntax for 2.1.0-preview2