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