lib/xot/setter.rb in xot-0.1.21 vs lib/xot/setter.rb in xot-0.1.22
- old
+ new
@@ -4,21 +4,21 @@
module Xot
module Setter
- def set (*args)
+ def set(*args)
first = args.shift
if first.kind_of? Hash
first.each {|name, value| set_value__ name, value}
else
set_value__ first, *args
end
end
private
- def set_value__ (name, *values)
+ def set_value__(name, *values)
raise ArgumentError, "set '#{values}' to '#{name}'" if
!name || name.empty? || values.empty?
__send__ "#{name}=", *values
end