Ruby2 monkeypatching