Sha256: c2c710840e61bae30c600be1d88eb055f65087d47a1daccf540ab480e5642c98
Contents?: true
Size: 820 Bytes
Versions: 34
Compression:
Stored size: 820 Bytes
Contents
require 'delegate' require 'after_do' require 'husky/pass_along' module Husky class Responder < SimpleDelegator extend AfterDo attr_reader :context def initialize(context) @context = context super end def successfully_created(object) raise NotImplementedError end def failed_to_create(object) raise NotImplementedError end def successfully_updated(object) raise NotImplementedError end def failed_to_update(object) raise NotImplementedError end def successfully_destroyed(object) raise NotImplementedError end def failed_to_destroy(object) raise NotImplementedError end end end Husky::Responder.after :initialize do |*, responder| PassAlong.all_variables(responder, responder.context) end
Version data entries
34 entries across 34 versions & 1 rubygems