Module: ViewComponent::WithContentHelper

Included in:
Base, Slot
Defined in:
lib/view_component/with_content_helper.rb

Instance Method Summary collapse

Instance Method Details

#with_content(value) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/view_component/with_content_helper.rb', line 5

def with_content(value)
  raise NilWithContentError if value.nil?

  @__vc_content_set_by_with_content = value

  self
end