Module: AdLint::CompoundPathParser
- Included in:
- CompilerTraits, MessageTraits, ProjectTraits, ProjectTraits::TargetFiles
- Defined in:
- lib/adlint/util.rb
Class Method Summary collapse
Class Method Details
.parse_compound_path_list(ary) ⇒ Object
470 471 472 |
# File 'lib/adlint/util.rb', line 470 def parse_compound_path_list(ary) (ary || []).compact.map { |str| parse_compound_path_str(str) }.flatten end |
.parse_compound_path_str(str) ⇒ Object
475 476 477 |
# File 'lib/adlint/util.rb', line 475 def parse_compound_path_str(str) str.split(File::PATH_SEPARATOR).map { |s| Pathname.new(s) } end |