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