# File lib/mocha/class_method.rb, line 56 56: def hidden_method 57: if RUBY_VERSION < '1.9' 58: method_name = method.to_s.gsub(/\W/) { |s| "_substituted_character_#{s[0]}_" } 59: else 60: method_name = method.to_s.gsub(/\W/) { |s| "_substituted_character_#{s.ord}_" } 61: end 62: "__stubba__#{method_name}__stubba__" 63: end