Class: ShellAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/check_xcode_xmls/shell_adapter.rb

Overview

Adapter which handles shell access.

Instance Method Summary collapse

Instance Method Details

#process_files(check_constraints_identifiers, check_use_autolayout, ignore_regex_string, base_path) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/check_xcode_xmls/shell_adapter.rb', line 5

def process_files(
check_constraints_identifiers,
check_use_autolayout,
ignore_regex_string,
base_path
  )
result = []
files = find_files(ignore_regex_string, base_path, /.(xib|storyboard)$/)

files.each do |file|
  result += parse_xml(
    check_constraints_identifiers,
    check_use_autolayout,
    file
  )
end
result
end