summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-26 10:22:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-26 10:22:14 +0000
commitc88c96361d4c4e30db4e4078d744cd0b16ac4dcf (patch)
tree403bd79e169f934c7521064363dd7857cba3ce88 /lib
parentfce5e4b1bc09fbd87a5cdf5eee1af7770162c312 (diff)
protected methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mailread.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mailread.rb b/lib/mailread.rb
index a5d60c8..8ec951e 100644
--- a/lib/mailread.rb
+++ b/lib/mailread.rb
@@ -15,7 +15,8 @@ class Mail
break if /^$/ # end of header
if /^(\S+):\s*(.*)/
- @header[attr = $1.capitalize!] = $2
+ (attr = $1).capitalize!
+ @header[attr] = $2
elsif attr
sub!(/^\s*/, '')
@header[attr] += "\n" + $_