Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-catalyst-support/utils.rb

Instance Method Summary collapse

Instance Method Details

#filter_linesObject



2
3
4
5
6
7
8
9
10
# File 'lib/cocoapods-catalyst-support/utils.rb', line 2

def filter_lines
  lines = []
  each_line do |line| 
    if yield line
      lines = lines + [line]
    end
  end
  return lines
end