Class: Method
- Inherits:
-
Object
- Object
- Method
- Defined in:
- lib/method.rb
Instance Method Summary collapse
Instance Method Details
#to_rpromise(*args, &block) ⇒ Object
2 3 4 5 6 |
# File 'lib/method.rb', line 2 def to_rpromise(*args, &block) Rpromise.new do |resolve, reject| resolve.call(self.call(*args, &block)) end end |