Pattern: Use of ?
character literal
Issue: -
Checks for uses of the character literal ?x
. Since Ruby 1.9 it's basically redundant — ?x
would interpreted as 'x'
(a string with a single character in it).
# bad
char = ?c
# good
char = 'c'
Pattern: Use of ?
character literal
Issue: -
Checks for uses of the character literal ?x
. Since Ruby 1.9 it's basically redundant — ?x
would interpreted as 'x'
(a string with a single character in it).
# bad
char = ?c
# good
char = 'c'