From 20ae8fed6b2252a1c016748486924856e945ef59 Mon Sep 17 00:00:00 2001 From: ser Date: Sat, 24 Apr 2004 02:04:10 +0000 Subject: - git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/attribute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml/attribute.rb') diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb index df07ce7a18..90d7e66122 100644 --- a/lib/rexml/attribute.rb +++ b/lib/rexml/attribute.rb @@ -36,7 +36,7 @@ module REXML elsif first.kind_of? String @element = parent if parent.kind_of? Element self.name = first - @value = second + @value = second.to_s else raise "illegal argument #{first.class.name} to Attribute constructor" end -- cgit v1.2.3