Module: RuboCop::Cop::RationalLiteral
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Macros
|
|
Defined in: | lib/rubocop/cop/mixin/rational_literal.rb |
Overview
Common functionality for handling Rational literals.
Instance Method Summary
- #rational_literal?(node) private
Instance Method Details
#rational_literal?(node) (private)
[ GitHub ]# File 'lib/rubocop/cop/mixin/rational_literal.rb', line 12
def_node_matcher :rational_literal?, <<~PATTERN (send (int _) :/ (rational _)) PATTERN