Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress deprecated warning by Object#=~ since ruby 2.6
In `Temple::Mixins::GrammerDSL::Value#Rule`, call `=~` method to `Class` class then that causes a warning message. This behavior introduced from ruby 2.6 with `-W` option. (And ruby 2.7 always show a warning message) https://bugs.ruby-lang.org/issues/15231 ruby/ruby@ebff9dc10 Therefore if "elem" is `Class` class, skip calling `=~` method.
- Loading branch information