Class: Caricature::IsolatorContext

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

Overview

The context for an isolator. This contains the subject, recorder, expectations and messenger

Instance Attribute Summary collapse

Instance Attribute Details

#expectationsObject

Returns the value of attribute expectations

Returns:

  • (Object)

    the current value of expectations



44
45
46
# File 'lib/caricature/isolation.rb', line 44

def expectations
  @expectations
end

#messengerObject

Returns the value of attribute messenger

Returns:

  • (Object)

    the current value of messenger



44
45
46
# File 'lib/caricature/isolation.rb', line 44

def messenger
  @messenger
end

#recorderObject

Returns the value of attribute recorder

Returns:

  • (Object)

    the current value of recorder



44
45
46
# File 'lib/caricature/isolation.rb', line 44

def recorder
  @recorder
end

#subjectObject

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



44
45
46
# File 'lib/caricature/isolation.rb', line 44

def subject
  @subject
end