module Phlex::Collection
def initialize(collection: nil, item: nil)
def initialize(collection: nil, item: nil) unless collection || item raise ArgumentError, "You must pass a collection or an item as a keyword argument." end @collection = collection @item = item end