class Bizflow::DomainInterpreter

Attributes

process_interpreter[RW]
repo[RW]

Public Class Methods

new(repo) click to toggle source
# File lib/bizflow/interpreters/domain_interpreter.rb, line 8
def initialize(repo)
  @repo = repo
end

Public Instance Methods

process(name, &action) click to toggle source
# File lib/bizflow/interpreters/domain_interpreter.rb, line 12
def process(name, &action)
  process_interpreter = Bizflow::ProcessInterpreter.new(name)
  process_interpreter.instance_eval(&action)
  repo.add_process(process_interpreter.process)
end