# File lib/mocha/class_method.rb, line 62 62: def hidden_method 63: if RUBY_VERSION < '1.9' 64: method_name = method.to_s.gsub(/\W/) { |s| "_substituted_character_#{s[0]}_" } 65: else 66: method_name = method.to_s.gsub(/\W/) { |s| "_substituted_character_#{s.ord}_" } 67: end 68: hidden_method = "__stubba__#{method_name}__stubba__" 69: RUBY_VERSION < '1.9' ? hidden_method.to_s : hidden_method.to_sym 70: end