# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ class Sequencer::Unit::Common::Provider::Named < Sequencer::Unit::Common::Provider::Attribute module ClassMethods def named_provide name.demodulize.underscore.to_sym end end def self.inherited(base) super base.extend(ClassMethods) base.provides(base.named_provide) base.extend(Forwardable) end def provides self.class.named_provide end end