1
class SetterTrap < ActiveSupport::BasicObject
5
yield(trapped).tap { trapped.rollback_sets }
14
def respond_to?(method)
15
@obj.respond_to?(method)
18
def method_missing(method, *args, &proc)
19
@cache[method] ||= @obj.send($`) if method.to_s =~ /=$/
20
@obj.send method, *args, &proc
24
@cache.each { |k, v| @obj.send k, v }