class Concurrent::Promises::InternalStates::Rejected
@private
Public Class Methods
new(reason)
click to toggle source
# File lib/concurrent/promises.rb, line 414 def initialize(reason) @Reason = reason end
Public Instance Methods
apply(args, block)
click to toggle source
# File lib/concurrent/promises.rb, line 434 def apply(args, block) block.call reason, *args end
fulfilled?()
click to toggle source
# File lib/concurrent/promises.rb, line 418 def fulfilled? false end
reason()
click to toggle source
# File lib/concurrent/promises.rb, line 426 def reason @Reason end
to_sym()
click to toggle source
# File lib/concurrent/promises.rb, line 430 def to_sym :rejected end
value()
click to toggle source
# File lib/concurrent/promises.rb, line 422 def value nil end