Sha256: d5bd5b2f92935b1309a307fe37e10726589c4f3d0eb418607e5e624fe252b0f5

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 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, &block)
    if @variables.has_key?(method_name)
      @variables[method_name]
    else
      @parent_context_helper.send(method_name, *args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kuber_kit-1.1.6 lib/kuber_kit/core/context_helper/local_context_helper.rb
kuber_kit-1.3.3 lib/kuber_kit/core/context_helper/local_context_helper.rb