Method: Hanami::Config::Router#method_missing

Defined in:
lib/hanami/config/router.rb

#method_missing(name, *args, &block) ⇒ Object (private)

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.

Since:

  • 2.0.0


34
35
36
37
38
39
40
# File 'lib/hanami/config/router.rb', line 34

def method_missing(name, *args, &block)
  if config.respond_to?(name)
    config.public_send(name, *args, &block)
  else
    super
  end
end