Method: Capybara::Selector::RegexpDisassembler#alternated_substrings

Defined in:
lib/capybara/selector/regexp_disassembler.rb

#alternated_substringsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
16
17
18
19
# File 'lib/capybara/selector/regexp_disassembler.rb', line 13

def alternated_substrings
  @alternated_substrings ||= begin
    or_strings = process(alternation: true)
    remove_or_covered(or_strings)
    or_strings.any?(&:empty?) ? [] : or_strings
  end
end