# File lib/aws/simple_email_service.rb, line 362 def nest_options options, accepted_options send_opts = {} accepted_options.each_pair do |option, keys| next unless options[option] hash = send_opts keys.collect{|k| k.to_sym }.each do |key| hash[key] = {} unless hash[key] if keys.last == key.to_s hash[key] = options[option] else hash = hash[key] end end end send_opts end