instance method
stringify
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
stringify(value)
No documentation comment.
Parameters
-
valuereq
Source
# File actiontext/lib/action_text/markdown_conversion.rb, line 341
def stringify(value)
case value
when Array
case value[0]
when :bold then wrap_emphasis(value[1], "**")
when :italic then wrap_emphasis(value[1], "*")
else value.join
end
else
value.to_s
end
end
Defined in actiontext/lib/action_text/markdown_conversion.rb line 341
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::MarkdownConversion