# File lib/xml_parser.rb, line 163 def self.shift_case(str) str.gsub(/^[A-Z]|[A-Z]/) { |a| "_" + a.downcase}.gsub(/^[_]/){} end