Class: MrDarcy::Promise::State::Resolved

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

Overview

Represents the resolved state of a promise.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #reject, #rejected?, #resolve, #unresolved?

Constructor Details

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

Instance Method Details

#resolved?Boolean

Returns:

  • (Boolean)

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

def resolved?
  true
end