module Dry::Plugins::DSL
Plug-ins DSL
Public Class Methods
extended(plugins)
click to toggle source
@api private
Calls superclass method
# File lib/dry/plugins/dsl.rb, line 10 def self.extended(plugins) super(plugins) plugins.extend SingleForwardable plugins.def_single_delegators Plugins.config.registry_method, :register, :resolve, :[] end
Public Instance Methods
host()
click to toggle source
@return [Module, Host::DSL]
# File lib/dry/plugins/dsl.rb, line 20 def host @host ||= Inflecto.constantize(name.gsub(/::[^:]+$/, '')) end