Class: Hanami::Configuration::App Private

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/hanami/configuration/app.rb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ App

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.

Returns a new instance of App


14
15
16
17
18
# File 'lib/hanami/configuration/app.rb', line 14

def initialize(app, options = {})
  super(app)
  @path_prefix = options[:at]
  @host = options[:host]
end

Instance Attribute Details

#hostObject (readonly)

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.


11
12
13
# File 'lib/hanami/configuration/app.rb', line 11

def host
  @host
end

#path_prefixObject (readonly)

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.


9
10
11
# File 'lib/hanami/configuration/app.rb', line 9

def path_prefix
  @path_prefix
end