Method: CukeSlicer::NestedTagCollection#validate

Defined in:
lib/cuke_slicer/collections/nested_tag_collection.rb

#validateObject

private



18
19
20
21
22
23
# File 'lib/cuke_slicer/collections/nested_tag_collection.rb', line 18

def validate
  nested_collection.each do |element|
    raise(ArgumentError, 'Tag filters cannot be nested more than one level deep.') if element.is_a?(Array)
    raise(ArgumentError, "Filter '#{element}' must be a String or Regexp. Got #{element.class}") unless str_regex?(element) # rubocop:disable Metrics/LineLength

  end
end