Sha256: 98dea19ffc1646cefbddf05a2929126ff8c3cfb909fe52d05af111310091f7a9
Contents?: true
Size: 376 Bytes
Versions: 20
Compression:
Stored size: 376 Bytes
Contents
module Lookbook # Shared module that both Lookbook::Preview and ViewComponent::Preview are extended with module PreviewAfterRender def after_render(method:, html:, context:) instance = new if instance.method(method).arity > 1 instance.send(method, html, context) else instance.send(method, html) end.html_safe end end end
Version data entries
20 entries across 20 versions & 1 rubygems