Roda::RodaPlugins::Presenters::

InstanceMethods module

Public Instance Methods

present( object, **options )

Find the presenter for the given object and apply it with the given options. Raises an exception if no presenter can be found.

# File lib/roda/plugins/presenters.rb, line 37
def present( object, **options )
    mod = self.class.presenter_collection
    return mod.present( object, **options )
end
present_collection( object, **options )

Find the presenter for the given object and apply it with the given options. Raises an exception if no presenter can be found.

# File lib/roda/plugins/presenters.rb, line 45
def present_collection( object, **options )
    mod = self.class.presenter_collection
    return mod.present_collection( object, **options )
end