Module: StaticDocs::ApplicationHelper

Defined in:
app/helpers/static_docs/application_helper.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



7
8
9
10
11
12
13
# File 'app/helpers/static_docs/application_helper.rb', line 7

def method_missing(method, *args, &block)
  if main_app.respond_to?(method)
    main_app.send(method, *args, &block)
  else
    super
  end
end

Instance Method Details

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/static_docs/application_helper.rb', line 3

def respond_to?(method)
  super || main_app.respond_to?(method)
end