# File lib/pry/default_commands/ls.rb, line 171 def rubbishness(name) name.each_char.map{ |x| case x when /[A-Z]/ 1 when '?', '=', '!' -2 else 0 end }.inject(&:+) + (name.size / 100.0) end