Class: MrDarcy::Promise::State::Rejected

Inherits:
Base
  • Object
show all
Defined in:
lib/mr_darcy/promise/state/rejected.rb

Overview

Represents the rejected state of a promise.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #reject, #resolve, #resolved?, #unresolved?

Constructor Details

This class inherits a constructor from MrDarcy::Promise::State::Base

Instance Method Details

#rejected?Boolean

Returns:

  • (Boolean)

6
7
8
# File 'lib/mr_darcy/promise/state/rejected.rb', line 6

def rejected?
  true
end