module AdLint::CompoundPathParser

Public Class Methods

parse_compound_path_list(ary) click to toggle source
# 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) click to toggle source
# File lib/adlint/util.rb, line 475
def parse_compound_path_str(str)
  str.split(File::PATH_SEPARATOR).map { |s| Pathname.new(s) }
end

Private Instance Methods

parse_compound_path_list(ary) click to toggle source
# 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) click to toggle source
# File lib/adlint/util.rb, line 475
def parse_compound_path_str(str)
  str.split(File::PATH_SEPARATOR).map { |s| Pathname.new(s) }
end