instance method
plain_text_for_blockquote_node
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
plain_text_for_blockquote_node(node, child_values)
No documentation comment.
Parameters
-
nodereq -
child_valuesreq
Source
# File actiontext/lib/action_text/plain_text_conversion.rb, line 72
def plain_text_for_blockquote_node(node, child_values)
text = plain_text_for_block(node, child_values)
return "“”" if text.blank?
text = text.dup
text.insert(text.rindex(/\S/) + 1, "”")
text.insert(text.index(/\S/), "“")
text
end
Defined in actiontext/lib/action_text/plain_text_conversion.rb line 72
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::PlainTextConversion