INNER CODE UNIT · Ruby

method_missing

exAspArk/batch-loader · lib/batch_loader.rb:72

  def method_missing(method_name, *args, **kwargs, &block)
    __sync!.public_send(method_name, *args, **kwargs, &block)
  end

  def __sync!
    loaded_value = __sync

    if @replace_methods
      __replace_with!(loaded_value)
    else
      loaded_value
    end
  end

  def __ensure_batched
    return if __executor_proxy.value_loaded?(item: @item)

    items = __executor_proxy.list_items

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…