# File lib/yard/core_ext/string.rb, line 2 def underscore gsub(/([a-z])([A-Z])/, '\1_\2').downcase end