Methods

Class 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 # know not to call #, to avoid the infinite loop.

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

Call # instead of # unless # is being called by #.

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.