Sha256: 2dc716142a7e7423fa9ceabeecc73090069eccbe09ecb341cb0bf048192877d9

Contents?: true

Size: 240 Bytes

Versions: 8

Compression:

Stored size: 240 Bytes

Contents

module Reactor
  module ResourceActionable
    class ActionEvent
      def self.perform(&block)
        @perform_block = block
      end

      def self.perform_on(ctx)
        ctx.instance_exec(&@perform_block)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reactor-0.19.0 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.18.0 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.17.0 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.16.1 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.16.0 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.15.1 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.15.0 lib/reactor/controllers/concerns/actions/action_event.rb
reactor-0.14.0 lib/reactor/controllers/concerns/actions/action_event.rb