Skip to content

Instantly share code, notes, and snippets.

View gist:09509566cee1f5bb4115
module CallbackPureRuby
def self.included(klass)
klass.extend ClassMethods
klass.initialize_included_features
end
module ClassMethods
def initialize_included_features
@callbacks = Hash[:before, {}, :after, {}]