diff options
author | yui-knk <spiketeika@gmail.com> | 2016-05-30 00:39:56 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-05-30 00:42:37 +0900 |
commit | dc85a6e9c74942945ad696f5da4d82490a85b865 (patch) | |
tree | 95e9c32f6d58441529227b1904ef0efb61ed2eed /test | |
parent | cff88eaa6b385f887c2e4d12342ddeb0651f1017 (diff) | |
download | rails-dc85a6e9c74942945ad696f5da4d82490a85b865.tar.gz rails-dc85a6e9c74942945ad696f5da4d82490a85b865.tar.bz2 rails-dc85a6e9c74942945ad696f5da4d82490a85b865.zip |
Support for unified Integer class in Ruby 2.4+
Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005
Ruby ~2.3 `1234.class` is `Fixnum` and `123456789012345678901234567890.class`
is `Bignum`.
Ruby 2.4+ `1234.class` is `Integer` and `123456789012345678901234567890.class`
is `Integer`.
So what we should do is defining `visit_Integer` method to visitors.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions