Module: Riot::RR

Defined in:
lib/riot/rr.rb

Overview

Enables inherent RR support in Riot. When required in, all contexts and assertions are adapted to have RR support.

Defined Under Namespace

Modules: ContextClassOverrides Classes: Assertion, Situation

Class Method Summary collapse

Class Method Details

.enable(context_class) ⇒ Object

A convenience method for telling ContextClassOverrides to mix itself into Context. Thus, enabling RR support in Riot.

Parameters:

  • context_class (Class)

    the class representing the Context to bind to



57
58
59
# File 'lib/riot/rr.rb', line 57

def self.enable(context_class)
  context_class.instance_eval { include Riot::RR::ContextClassOverrides }
end