Class: Rpromise::Handler

Inherits:
Struct
  • Object
show all
Defined in:
lib/rpromise.rb

Instance Attribute Summary collapse

Instance Attribute Details

#on_rejectedObject

Returns the value of attribute on_rejected

Returns:

  • (Object)

    the current value of on_rejected



11
12
13
# File 'lib/rpromise.rb', line 11

def on_rejected
  @on_rejected
end

#on_resolvedObject

Returns the value of attribute on_resolved

Returns:

  • (Object)

    the current value of on_resolved



11
12
13
# File 'lib/rpromise.rb', line 11

def on_resolved
  @on_resolved
end

#rejectObject

Returns the value of attribute reject

Returns:

  • (Object)

    the current value of reject



11
12
13
# File 'lib/rpromise.rb', line 11

def reject
  @reject
end

#resolveObject

Returns the value of attribute resolve

Returns:

  • (Object)

    the current value of resolve



11
12
13
# File 'lib/rpromise.rb', line 11

def resolve
  @resolve
end