module ActionPresenter::TemplateDelegation
Public Instance Methods
method_missing_with_template_delegation(name, *args, &block)
click to toggle source
Calls superclass method
# File lib/action_presenter/template_delegation.rb, line 9 def method_missing_with_template_delegation(name, *args, &block) if respond_to_missing_without_template_delegation?(name) method_missing_without_template_delegation(name, *args, &block) elsif @_template.respond_to?(name, false) @_template.send(name, *args, &block) else super end end
respond_to_missing_with_template_delegation?(name, include_private = false)
click to toggle source
# File lib/action_presenter/template_delegation.rb, line 19 def respond_to_missing_with_template_delegation?(name, include_private = false) @_template.respond_to?(name, include_private) || respond_to_missing_without_template_delegation?(name, include_private) end