# File lib/mailfactory.rb, line 122 def method_missing(methId, *args) name = methId.id2name() # mangle the name if we have to if(name =~ /_/) name = name.gsub(/_/, '-') elsif(name =~ /[A-Z]/) name = name.gsub(/([a-zA-Z])([A-Z])/, '\1-\2') end # determine if it sets or gets, and do the right thing if(name =~ /=$/) if(args.length != 1) super(methId, args) end set_header(name[/^(.*)=$/, 1], args[0]) else if(args.length != 0) super(methId, args) end headers = get_header(name) return(get_header(name)) end end