Class: String

Inherits:
Object show all
Defined in:
lib/lsl/shell.rb

Instance Method Summary collapse

Instance Method Details

#output_to_arrayObject



4
5
6
# File 'lib/lsl/shell.rb', line 4

def output_to_array
  split("\n").select { |x| x.present? }.map { |x| x.strip }
end