diff options
author | Kevin Newton <[email protected]> | 2024-01-10 11:04:39 -0500 |
---|---|---|
committer | git <[email protected]> | 2024-01-27 19:59:42 +0000 |
commit | f12ebe11888d9fdd121c98ca8a5155dc044f4cf4 (patch) | |
tree | 5049375d90965241d1809608f08ecbb7dcc4d094 /lib/prism/node_ext.rb | |
parent | 223910b329751fbee36efe66ccd544e66dbe90f8 (diff) |
[ruby/prism] Add parser translation
https://github.com/ruby/prism/commit/8cdec8070c
Diffstat (limited to 'lib/prism/node_ext.rb')
-rw-r--r-- | lib/prism/node_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/node_ext.rb b/lib/prism/node_ext.rb index 1a78759e2c..f87714e552 100644 --- a/lib/prism/node_ext.rb +++ b/lib/prism/node_ext.rb @@ -81,7 +81,7 @@ module Prism class RationalNode < Node # Returns the value of the node as a Ruby Rational. def value - Rational(numeric.is_a?(IntegerNode) && !numeric.decimal? ? numeric.value : slice.chomp("r")) + Rational(numeric.is_a?(IntegerNode) ? numeric.value : slice.chomp("r")) end end |