Class: CukeSlicer::PathCollection
- Inherits:
-
Object
- Object
- CukeSlicer::PathCollection
- Includes:
- Helpers
- Defined in:
- lib/cuke_slicer/collections/path_collection.rb
Overview
private
Instance Method Summary collapse
-
#initialize(filter_values) ⇒ PathCollection
constructor
A new instance of PathCollection.
-
#validate ⇒ Object
private.
Methods included from Helpers
#path?, #str_regex?, #str_regex_arr?, #tag?
Constructor Details
#initialize(filter_values) ⇒ PathCollection
Returns a new instance of PathCollection.
13 14 15 |
# File 'lib/cuke_slicer/collections/path_collection.rb', line 13 def initialize(filter_values) self.filter_values = filter_values end |
Instance Method Details
#validate ⇒ Object
private
18 19 20 21 22 |
# File 'lib/cuke_slicer/collections/path_collection.rb', line 18 def validate filter_values.each do |val| raise(ArgumentError, "Filter '#{val}' must be a String or Regexp. Got #{val.class}") unless str_regex?(val) end end |