Sha256: d8ced9319bf42a3ec61afd7eadd5577ac14d7bed1c8aa0fb28b1e80807b24cfb

Contents?: true

Size: 436 Bytes

Versions: 20

Compression:

Stored size: 436 Bytes

Contents

module JFlow
  module Activity
    module Mixin

      def self.included base
        base.extend ClassMethods
      end

      module ClassMethods
        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
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
jflow-0.5.1 lib/jflow/activity/mixin.rb
jflow-0.5.0 lib/jflow/activity/mixin.rb
jflow-0.4.5 lib/jflow/activity/mixin.rb
jflow-0.4.4 lib/jflow/activity/mixin.rb
jflow-0.4.3 lib/jflow/activity/mixin.rb
jflow-0.4.2 lib/jflow/activity/mixin.rb
jflow-0.4.1 lib/jflow/activity/mixin.rb
jflow-0.4.0 lib/jflow/activity/mixin.rb
jflow-0.3.6 lib/jflow/activity/mixin.rb
jflow-0.3.5 lib/jflow/activity/mixin.rb
jflow-0.3.4 lib/jflow/activity/mixin.rb
jflow-0.3.3 lib/jflow/activity/mixin.rb
jflow-0.3.2 lib/jflow/activity/mixin.rb
jflow-0.3.1 lib/jflow/activity/mixin.rb
jflow-0.3.0 lib/jflow/activity/mixin.rb
jflow-0.2.9 lib/jflow/activity/mixin.rb
jflow-0.2.8 lib/jflow/activity/mixin.rb
jflow-0.2.6 lib/jflow/activity/mixin.rb
jflow-0.2.5 lib/jflow/activity/mixin.rb
jflow-0.2.0 lib/jflow/activity/mixin.rb