Module: ViewComponent::WithContentHelper
Instance Method Summary collapse
Instance Method Details
#with_content(value) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/view_component/with_content_helper.rb', line 5 def with_content(value) if value.nil? raise ArgumentError.new( "No content provided to `#with_content` for #{self}.\n\n" \ "To fix this issue, pass a value." ) else @__vc_content_set_by_with_content = value end self end |