Module: Cell::Collection::Layout

Included in:
Cell::Collection
Defined in:
lib/cell/collection.rb

Instance Method Summary collapse

Instance Method Details

#callObject

WARNING: THIS IS NOT FINAL API.



40
41
42
43
44
45
# File 'lib/cell/collection.rb', line 40

def call(*) # WARNING: THIS IS NOT FINAL API.
  layout = @options.delete(:layout) # we could also override #initialize and that there?

  content = super # DISCUSS: that could come in via the pipeline argument.
  ViewModel::Layout::External::Render.(content, @ary, layout, @options)
end