Module: Playbook::PbKitHelper

Included in:
KitBase
Defined in:
lib/playbook/pb_kit_helper.rb

Instance Method Summary collapse

Instance Method Details

#pb_rails(kit_name, props: {}, &block) ⇒ Object



5
6
7
8
# File 'lib/playbook/pb_kit_helper.rb', line 5

def pb_rails(kit_name, props: {}, &block)
  kit = Playbook::KitResolver.resolve(kit_name.to_s)
  render_component kit.new(props, &block), &block
end