Method: Utils#text_to_array

Defined in:
lib/utils.rb

#text_to_array(text) ⇒ Object



68
69
70
71
72
73
74
75
76
77
# File 'lib/utils.rb', line 68

def text_to_array(text)
  page_lines = []
  text.each_line do |line|
    line.gsub!("\r\n","")
    line.gsub!("\n","")
    line.strip!
    page_lines << line
  end    
  page_lines
end