Sha256: f5e429ce0a06561a1f59a004e286e8be8a204783d3976b23176ba0c2281e9559

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

module JFlow
  module ActivityMixin

    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.new(self, options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jflow-0.1.0 lib/jflow/activity_mixin.rb