Sha256: 8d09a4effc60e642bdaefc29a11d51e79cbfe043e934c2db3abc9a58585f7710

Contents?: true

Size: 224 Bytes

Versions: 5

Compression:

Stored size: 224 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-1.0.0.beta2 lib/hanami/application_namespace.rb
hanami-1.0.0.beta1 lib/hanami/application_namespace.rb
hanami-0.9.2 lib/hanami/application_namespace.rb
hanami-0.9.1 lib/hanami/application_namespace.rb
hanami-0.9.0 lib/hanami/application_namespace.rb