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

Make Node#numeric_type? aware of rational and complex literals #213

Commits on Nov 6, 2021

  1. Make Node#numeric_type? aware of rational and complex literals

    This PR makes `Node#numeric_type?` aware of complex and rational literals.
    These literals could be treated as numeric.
    
    ```ruby
    42r.is_a?(Numeric)  # => true
    42i.is_a?(Numeric)  # => true
    42ri.is_a?(Numeric) # => true
    ```
    koic committed Nov 6, 2021
    Copy the full SHA
    789e3bf View commit details
    Browse the repository at this point in the history