lib/xot/setter.rb in xot-0.1.12 vs lib/xot/setter.rb in xot-0.1.13
- old
+ new
@@ -16,10 +16,11 @@
end
private
def set_value__ (name, *values)
- raise ArgumentError unless name && !values.empty?
+ raise ArgumentError, "set '#{values}' to '#{name}'" if
+ !name || name.empty? || values.empty?
__send__ "#{name}=", *values
end
end# Setter