Class: Obp::Access::Renderer::Elements::ProtectedContentNote
- Defined in:
- lib/obp/access/elements/protected_content_note.rb
Overview
OBP replaces paywalled sections with this placeholder ("Only informative sections of standards are publicly available..."). Skip it explicitly: render nothing and halt recursion, so the placeholder text never leaks into the output.
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#render ⇒ Object
Accepts (and ignores) the render target; the nil return tells the renderer to halt recursion into this subtree.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Obp::Access::Renderer::Elements::Base
Class Method Details
.classes ⇒ Object
10 11 12 |
# File 'lib/obp/access/elements/protected_content_note.rb', line 10 def self.classes %w[sts-protected-content-note] end |
Instance Method Details
#render ⇒ Object
Accepts (and ignores) the render target; the nil return tells the renderer to halt recursion into this subtree.
16 17 18 |
# File 'lib/obp/access/elements/protected_content_note.rb', line 16 def render(*) nil end |