Class: ConvenientService::Support::DependencyContainer::Commands::CreateMethodsModule

Inherits:
Command
  • Object
show all
Defined in:
lib/convenient_service/support/dependency_container/commands/create_methods_module.rb

Instance Method Summary collapse

Methods inherited from Command

[], call, #initialize

Constructor Details

This class inherits a constructor from ConvenientService::Support::Command

Instance Method Details

#callModule

Returns:

  • (Module)


11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/convenient_service/support/dependency_container/commands/create_methods_module.rb', line 11

def call
  ::Module.new do
    class << self
      ##
      # @return namespaces [ConvenientService::Support::DependencyContainer::Entities::NamespaceCollection]
      #
      def namespaces
        @namespaces ||= Entities::NamespaceCollection.new
      end
    end
  end
end