Method: Hanami::Model::Configuration#root

Defined in:
lib/hanami/model/configuration.rb

#rootObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Root directory

Since:

  • 0.4.0



76
77
78
# File 'lib/hanami/model/configuration.rb', line 76

def root
  Hanami.respond_to?(:root) ? Hanami.root : Pathname.pwd
end