Sha256: 744c591536123e18357f2df73c7ab3d0d6bba335fc8c14b42ba7748290fe572d
Contents?: true
Size: 386 Bytes
Versions: 62
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true module ViewComponent module WithContentHelper 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 end end
Version data entries
62 entries across 62 versions & 2 rubygems