instance method
plain_text_for_blockquote_node
Ruby on Rails 8.0.4
Since v6.0.6 PrivateSignature
plain_text_for_blockquote_node(node, index)
No documentation comment.
Parameters
-
nodereq -
indexreq
Source
# File actiontext/lib/action_text/plain_text_conversion.rb, line 66
def plain_text_for_blockquote_node(node, index)
text = plain_text_for_block(node)
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 66
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::PlainTextConversion