Methods

Class/Module Index [+]

Quicksearch

Sequel::Plugins::EagerEach::EagerDatasetMethods

Methods added to eagerly loaded datasets when the eager_each plugin is in use.

Public Instance Methods

all(&block) click to toggle source

Clone the dataset and set a flag to let each know not to call all, to avoid the infinite loop.

# File lib/sequel/plugins/eager_each.rb, line 37
def all(&block)
  if opts[:all_called]
    super
  else
    clone(:all_called=>true).all(&block)
  end
end
each(&block) click to toggle source

Call all instead of each unless each is being called by all.

# File lib/sequel/plugins/eager_each.rb, line 27
def each(&block)
  if opts[:all_called]
    super
  else
    all(&block)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.