Sha256: 8c00f68cd42c52189fcf84c5ed28af32dc71f9d2e0fb102ba52a8c6555c4527b

Contents?: true

Size: 260 Bytes

Versions: 3

Compression:

Stored size: 260 Bytes

Contents

require 'hanami/utils/class'
require 'hanami/utils/string'

module Hanami
  # @api private
  class ApplicationNamespace
    # @api private
    def self.resolve(name)
      Utils::Class.load!(
        Utils::String.new(name).namespace
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-1.0.0 lib/hanami/application_namespace.rb
hanami-1.0.0.rc1 lib/hanami/application_namespace.rb
hanami-1.0.0.beta3 lib/hanami/application_namespace.rb