# File lib/hiera/backend/eyaml/utils.rb, line 28 def self.snakecase string return string if string !~ /[A-Z]/ string.split(/(?=[A-Z])/).collect {|x| x.downcase}.join("_") end