方法
实例公共方法
node_to_plain_text(node) 链接
来源: 显示 | 在 GitHub 上
# File actiontext/lib/action_text/plain_text_conversion.rb, line 9 def node_to_plain_text(node) BottomUpReducer.new(node).reduce do |n, child_values| plain_text_for_node(n, child_values) end.then(&method(:remove_trailing_newlines)) end