Class: Roast::CogInputContext

Inherits:
Object
  • Object
show all
Includes:
SystemCogs::Call::InputContext, SystemCogs::Map::InputContext
Defined in:
lib/roast/cog_input_context.rb

Overview

Context in which the individual cog input blocks within the ‘execute` block of a workflow definition are evaluated

Defined Under Namespace

Classes: CogInputContextError, ContextNotFoundError

Instance Method Summary collapse

Methods included from SystemCogs::Map::InputContext

#collect, #reduce

Methods included from SystemCogs::Call::InputContext

#from

Instance Method Details

#break!(message = nil) ⇒ Object

: (?String?) -> void

Raises:



30
31
32
# File 'lib/roast/cog_input_context.rb', line 30

def break!(message = nil)
  raise ControlFlow::Break, message
end

#fail!(message = nil) ⇒ Object

: (?String?) -> void



20
21
22
# File 'lib/roast/cog_input_context.rb', line 20

def fail!(message = nil)
  raise ControlFlow::FailCog, message
end

#next!(message = nil) ⇒ Object

: (?String?) -> void

Raises:



25
26
27
# File 'lib/roast/cog_input_context.rb', line 25

def next!(message = nil)
  raise ControlFlow::Next, message
end

#skip!(message = nil) ⇒ Object

: (?String?) -> void



15
16
17
# File 'lib/roast/cog_input_context.rb', line 15

def skip!(message = nil)
  raise ControlFlow::SkipCog, message
end