Sha256: a5970f95e7b4af585984bb971469ebbd59e13d2e9939afbcf2e290b4dc857b92

Contents?: true

Size: 503 Bytes

Versions: 12

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  class Plugin
    # @api private
    class HelperCaller
      def initialize(connection:, helpers:, plugin:)
        @connection, @helpers, @plugin = connection, helpers, plugin
      end

      def method_missing(method_name, *args, &block)
        @helpers.public_send(method_name, *args, &block)
      end

      def respond_to_missing?(method_name, include_private = false)
        @helpers.respond_to?(method_name) || super
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.5 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.4 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.3 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.2 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.1 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0.rc5 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0.rc4 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0.rc3 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0.rc2 lib/pakyow/plugin/helper_caller.rb
pakyow-core-1.0.0.rc1 lib/pakyow/plugin/helper_caller.rb