class ViewComponent::Base
def with_collection(collection, **args)
-
args
(Arguments
) -- Arguments to pass to the ViewComponent every time. -
collection
(Enumerable
) -- A list of items to pass the ViewComponent one at a time.
def with_collection(collection, **args) Collection.new(self, collection, **args) end