Module: Kernel

Defined in:
lib/riot.rb

Overview

Riot

Instance Method Summary collapse

Instance Method Details

#context(description, reporter = nil, parent = nil, &block) ⇒ Object



24
25
26
27
# File 'lib/riot.rb', line 24

def context(description, reporter = nil, parent = nil, &block)
  reporter ||= Riot.reporter
  reporter.time { Riot::Context.new(description, reporter, parent, &block) }
end