class Performance
Public Class Methods
new(klass, method, options)
click to toggle source
# File lib/performance_promise/performance.rb, line 5 def initialize(klass, method, options) @klass, @method = klass, method PerformancePromise.promises["#{klass}\##{method.name.to_s}"] = options end
Public Instance Methods
call(this, *args)
click to toggle source
# File lib/performance_promise/performance.rb, line 10 def call(this, *args) @method.bind(this).call(*args) end