lib/amp/support/support.rb
##
# Newer version of split_newlines that works better. This splits on newlines,
# but includes the newline in each entry in the resultant string array.
#
# @return [Array<String>] the string split up into lines
Newer version of split_newlines that works better. This splits on newlines,
but includes the newline in each entry in the resultant string array.
Newer version of split_newlines that works better . This splits on newlines but includes the newline in each entry in the resultant string array .
def split_lines_better
    result = []
    each_line {|l| result << l}
    result
  end
def split_lines_better result = [ ] each_line { | l | result << l } result end
Newer version of split_newlines that works better.
Newer version of split_newlines that works better .
the string split up into lines
the string split up into lines
Array<String>