lib/lite/ruby/open_struct.rb in lite-ruby-1.3.1 vs lib/lite/ruby/open_struct.rb in lite-ruby-1.3.2
- old
+ new
@@ -8,10 +8,10 @@
def attributes
@table
end
def replace(args)
- args.each { |key, val| send("#{key}=", val) }
+ args.each { |key, val| self[key] = val }
end
def to_hash(table: true)
return attributes unless table