Module: CukeSlicer::Helpers
- Included in:
- FilterSet, NestedTagCollection, PathCollection, TagCollection
- Defined in:
- lib/cuke_slicer/helpers/helpers.rb
Overview
private
Instance Method Summary collapse
- #path?(parameter) ⇒ Boolean
- #str_regex?(parameter) ⇒ Boolean
- #str_regex_arr?(parameter) ⇒ Boolean
- #tag?(parameter) ⇒ Boolean
Instance Method Details
#path?(parameter) ⇒ Boolean
19 20 21 |
# File 'lib/cuke_slicer/helpers/helpers.rb', line 19 def path?(parameter) parameter.to_s =~ /path/ end |
#str_regex?(parameter) ⇒ Boolean
7 8 9 |
# File 'lib/cuke_slicer/helpers/helpers.rb', line 7 def str_regex?(parameter) parameter.is_a?(String) || parameter.is_a?(Regexp) end |
#str_regex_arr?(parameter) ⇒ Boolean
11 12 13 |
# File 'lib/cuke_slicer/helpers/helpers.rb', line 11 def str_regex_arr?(parameter) parameter.is_a?(String) || parameter.is_a?(Regexp) || parameter.is_a?(Array) end |
#tag?(parameter) ⇒ Boolean
15 16 17 |
# File 'lib/cuke_slicer/helpers/helpers.rb', line 15 def tag?(parameter) parameter.to_s =~ /tag/ end |