Skip to content

Commit

Permalink
Fix assignment on m.attr='value'
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Feb 23, 2009
1 parent 3bf9ad3 commit a314353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mmmail.rb
Expand Up @@ -73,7 +73,7 @@ def []=(k, v) @headers[translate_header_to_sym(k)] = v end

def method_missing(sym, *args)
if sym.to_s =~ /=$/
self[sym.to_s[0..-2].to_sym] = *args
self[sym.to_s[0..-2].to_sym] = args.first
elsif @headers.has_key?(sym)
self[sym]
else
Expand Down

0 comments on commit a314353

Please sign in to comment.