Method: String#split_lines

Defined in:
lib/ruber/utils.rb

#split_lines<String>

Splits the string in lines.

It’s a shortcut for str.split(“\n”)

Returns:

  • (<String>)

    an array containing the lines which make up the string



212
213
214
# File 'lib/ruber/utils.rb', line 212

def split_lines
  split "\n"
end