Sha256: 5554a76f89948eba61820b46d1ee027eff19d649e98f9b7170673ca9a4beaf71

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

require 'action_logic/action_includes'

module ActionLogic
  module ActionTask

    def self.included(klass)
      klass.extend ActionLogic::ActionIncludes
      klass.extend ClassMethods
    end

    module ClassMethods
      def execute(params = {})
        around(params) do |execution_context|
          execution_context.call
          execution_context.context
        end
      end

      def __private__type
        :task
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_logic-0.2.4 lib/action_logic/action_task.rb