Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress deprecated warning by Object#=~ since ruby 2.6 #129

Merged
merged 1 commit into from Jan 20, 2020

Commits on Jan 17, 2020

  1. 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 use case-when-else clause to avoid warning.
    unasuke committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    693641f View commit details
    Browse the repository at this point in the history