跳至内容 跳至搜索
方法
N

实例公共方法

node_to_plain_text(node)

# 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