Proxy object used by Dataset#query.
Attributes
dataset | [R] |
The current dataset in the query. This changes on each method call. |
Public Class methods
new
(dataset)
[show source]
# File lib/sequel/extensions/query.rb, line 56 def initialize(dataset) @dataset = dataset end
Public Instance methods
method_missing
(method, *args, &block)
Replace the query’s dataset with dataset returned by the method call.
[show source]
# File lib/sequel/extensions/query.rb, line 61 def method_missing(method, *args, &block) @dataset = @dataset.send(method, *args, &block) raise(Sequel::Error, "method #{method.inspect} did not return a dataset") unless @dataset.is_a?(Dataset) self end