lib/pathname/extensions/pathmap.rb
Method pathmap
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def pathmap(spec = nil, &block)
return self if spec.nil?
result = +''
# noinspection SpellCheckingInspection
spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|