Sha256: 084e9193b0b17ef4fdbfe886425f6879d8af38bffe50fd5672dfd9d4f0d7ca93

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 Bytes

Contents

class KuberKit::Core::ContextHelper::LocalContextHelper < KuberKit::Core::ContextHelper::AbstractHelper
  def initialize(parent_context_helper:, variables:)
    @parent_context_helper = parent_context_helper
    @variables = variables
  end

  def method_missing(method_name, *args, **kwargs, &block)
    if @variables.has_key?(method_name)
      @variables[method_name]
    else
      @parent_context_helper.send(method_name, *args, **kwargs, &block)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kuber_kit-1.3.9 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.8 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.7 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.1.8 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.6 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.1.7 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.5 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.4 lib/kuber_kit/core/context_helper/local_context_helper.rb