Class: Transactor::Improv::Actor

Inherits:
Actor
  • Object
show all
Defined in:
lib/transactor/improv/actor.rb

Instance Attribute Summary

Attributes inherited from Actor

#props

Instance Method Summary collapse

Methods inherited from Actor

#method_missing, perform, #respond_to_missing?, #rollback_on_failure!, rollback_on_failure!, rollback_on_failure?, #rollback_on_failure?, #state, #to_s

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Transactor::Actor

Instance Method Details

#perform(&block) ⇒ Object



4
5
6
# File 'lib/transactor/improv/actor.rb', line 4

def perform(&block)
  block_given? ? instance_eval(&block) : super
end

#rollback(&block) ⇒ Object



8
9
10
# File 'lib/transactor/improv/actor.rb', line 8

def rollback(&block)
  block_given? ? instance_eval(&block) : super
end