This PR resolves the fundamental issue mentioned in https://github.com/rubocop/rubocop/issues/13051. Although rational literal (e.g., (0.2r) is a basic literal that return true for RuboCop::AST::Node#numeric_type? and RuboCop::AST::Node#literal?, their behavior was not sufficiently covered as a NumericNode.
This PR maps rational literal to RationalNode to enable expected node operations for rational literals.
This PR resolves the fundamental issue mentioned in https://github.com/rubocop/rubocop/issues/13051. Although rational literal (e.g.,
(0.2r)
is a basic literal that returntrue
forRuboCop::AST::Node#numeric_type?
andRuboCop::AST::Node#literal?
, their behavior was not sufficiently covered as aNumericNode
.This PR maps rational literal to
RationalNode
to enable expected node operations for rational literals.