Method: RuboCop::Cop::Lint::SuppressedExceptionInNumberConversion#numeric_method?
- Defined in:
- lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb
#numeric_method?(node) ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb', line 65 def_node_matcher :numeric_method?, "{\n (call #constructor_receiver? {:Integer :BigDecimal :Complex :Rational}\n _ _?)\n (call #constructor_receiver? :Float\n _)\n}\n" |