module Hashie::Extensions::MethodWriter

def convert_key(key)

def convert_key(key)
  key.to_s
end

def method_missing(name, *args)

def method_missing(name, *args)
  if args.size == 1 && name.to_s =~ /(.*)=$/
    return self[convert_key(Regexp.last_match[1])] = args.first
  end
  super
end

def respond_to_missing?(name, include_private = false)

def respond_to_missing?(name, include_private = false)
  return true if name.to_s =~ /=$/
  super
end