Sha256: 6ad64100a86bd461e28df0fcdd3de79016f5236fb621d08b1fb8532b3e75d06d
Contents?: true
Size: 681 Bytes
Versions: 7
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true module Leftovers module ValueProcessors class Parameterize def initialize(then_processor) @then_processor = then_processor freeze end def process(str, node, method_node) return unless str @then_processor.process(str.parameterize, node, method_node) rescue NoMethodError Leftovers.error <<~MESSAGE Tried using the String#parameterize method, but the activesupport gem was not available and/or not required `gem install activesupport`, and/or add `requires: 'active_support/core_ext/string'` to your .leftovers.yml MESSAGE end end end end
Version data entries
7 entries across 7 versions & 1 rubygems