Module Origin::Forwardable
In: lib/origin/forwardable.rb

Allows for easy delegation of origin queryable instance methods to a specific method.

Methods

Public Instance methods

Tells origin with method on the class to delegate to when calling an original selectable or optional method on the class.

@example Tell origin where to select from.

  class Band
    extend Origin::Forwardable
    select_with :criteria

    def self.criteria
      Query.new
    end
  end

@param [ Symbol ] receiver The name of the receiver method.

@return [ Array<Symbol> ] The names of the forwarded methods.

@since 1.0.0

[Validate]