Ad
  • Custom User Avatar

    You can initialize the hash as char_repeats = Hash.new(0) so you don't have to the ternary conditional to check if it's initialized (it'll be initialized with the default value of 0). Cheers!