Sha256: e0c7897823a472dd11d5b144a5dae1011e72e979891615fb30dda8360b48e6ae
Contents?: true
Size: 669 Bytes
Versions: 7
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true module Leftovers module ValueProcessors class Camelize def initialize(then_processor) @then_processor = then_processor freeze end def process(str, node, method_node) return unless str @then_processor.process(str.camelize, node, method_node) rescue NoMethodError Leftovers.error <<~MESSAGE Tried using the String#camelize 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