diff options
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r-- | lib/rexml/attribute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |