Sha256: 40466a64a8c95b442f806734fc0a755fbc0821cc52c293cead77e316abed0098

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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