summaryrefslogtreecommitdiffstats
path: root/lib/rexml/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r--lib/rexml/attribute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index 4aef0944d..df07ce7a1 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -38,7 +38,7 @@ module REXML
self.name = first
@value = second
else
- raise "illegal argument #{first.type} to Attribute constructor"
+ raise "illegal argument #{first.class.name} to Attribute constructor"
end
end