Module: JFlow::Activity::Mixin::ClassMethods

Defined in:
lib/jflow/activity/mixin.rb

Instance Method Summary collapse

Instance Method Details

#activity(name = nil) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/jflow/activity/mixin.rb', line 10

def activity(name = nil)
  options = {}
  options = yield if block_given?
  options[:name] = name
  JFlow.configuration.logger.debug "loading #{name}"
  JFlow::Activity::Definition.new(self, options)
end