INNER CODE UNIT · Ruby

__loaded_value

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

  def __loaded_value
    result = __sync!
    @cache ? @loaded_value : result
  end

  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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…