Module: FeaturerWeb::FeaturerHelper
- Defined in:
- app/helpers/featurer_web/featurer_helper.rb
Instance Method Summary collapse
Instance Method Details
#formattted_matching_values(matching_values) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/featurer_web/featurer_helper.rb', line 3 def formattted_matching_values(matching_values) return [] unless matching_values matching_values.map do |matching_value| match = Regexp.new(/^\(\?-mix:(.*)\)$/).match(matching_value) if match # Looks like a regular expression "/#{match[1]}/" else matching_value end end end |