Class: Pakyow::Plugin::HelperCaller Private
- Inherits:
-
Object
- Object
- Pakyow::Plugin::HelperCaller
- Defined in:
- lib/pakyow/plugin/helper_caller.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 Method Summary collapse
-
#initialize(connection:, helpers:, plugin:) ⇒ HelperCaller
constructor
private
A new instance of HelperCaller.
- #method_missing(method_name, *args, &block) ⇒ Object private
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean private
Constructor Details
#initialize(connection:, helpers:, plugin:) ⇒ HelperCaller
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 HelperCaller.
7 8 9 |
# File 'lib/pakyow/plugin/helper_caller.rb', line 7 def initialize(connection:, helpers:, plugin:) @connection, @helpers, @plugin = connection, helpers, plugin end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
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/pakyow/plugin/helper_caller.rb', line 11 def method_missing(method_name, *args, &block) @helpers.public_send(method_name, *args, &block) end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
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.
15 16 17 |
# File 'lib/pakyow/plugin/helper_caller.rb', line 15 def respond_to_missing?(method_name, include_private = false) @helpers.respond_to?(method_name) || super end |