Module: Frontman::ForwardCallsToApp::ClassMethods

Defined in:
lib/frontman/concerns/forward_calls_to_app.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_id, *arguments, &block) ⇒ Object



19
20
21
# File 'lib/frontman/concerns/forward_calls_to_app.rb', line 19

def method_missing(method_id, *arguments, &block)
  Frontman::App.instance.public_send(method_id, *arguments, &block)
end

Instance Method Details

#respond_to_missing?(method_name, _ = false) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/frontman/concerns/forward_calls_to_app.rb', line 23

def respond_to_missing?(method_name, _ = false)
  Frontman::App.instance.respond_to?(method_name)
end