Sha256: 723a669243366ed4181c1da2b156839b89fa45d6e78a82d6e19f63590f17c7d3
Contents?: true
Size: 701 Bytes
Versions: 6
Compression:
Stored size: 701 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', 'active_support/core_ext/string']` to your .leftovers.yml MESSAGE end end end end
Version data entries
6 entries across 6 versions & 1 rubygems