Sha256: c6bcb92b9b702877c0b899b44680c397229bc9028f7fcc9c08fa6a8526377fa2
Contents?: true
Size: 737 Bytes
Versions: 37
Compression:
Stored size: 737 Bytes
Contents
module CurationConcerns module Actors # The CurationConcern Abstract actor responds to two primary actions: # * #create # * #update # # and the following attributes # # * next_actor # * curation_concern # * user # # it must instantiate the next actor in the chain and instantiate it. # it should respond to curation_concern, user and attributes. # it ha to next_actor class AbstractActor attr_reader :next_actor def initialize(_curation_concern, _user, next_actor) @next_actor = next_actor end delegate :curation_concern, :user, to: :next_actor delegate :create, to: :next_actor delegate :update, to: :next_actor end end end
Version data entries
37 entries across 37 versions & 1 rubygems