Classes: Lock, Proxy
"1.1.0"
7 8 9 10 11 12
# File 'lib/throttled_object.rb', line 7 def self.make(object, options = {}, *args) object_options = args.last.is_a?(Hash) ? args.pop : {} object_options[:lock] = Lock.new(options) args << object_options Proxy.new object, *args end