should_render_attachment method

should_render_attachment

Determines whether a specific attachment should be rendered based on the current options.

Returns

true if the attachment should be rendered; otherwise, false.

def should_render_attachment(self, attachment_url):
    ...
ParameterTypeDescription
attachment_urlstrThe URL of the attachment to check.

Exceptions

ExceptionDescription
ArgumentNullExceptionThrown when attachment_url is null.

See Also