Sha256: 5394fd20100d592eb09c10937a1ca3a7537e34c079c16c3b90564bb89cd6b1aa
Contents?: true
Size: 451 Bytes
Versions: 12
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module RailsAdmin module Support class ESModuleProcessor def self.instance @instance ||= new end def self.call(input) instance.call(input) end def initialize; end def call(input) return unless input[:name] == 'rails_admin/application' input[:data].gsub(/^((?:import|export) .+)$/) { "// #{Regexp.last_match(1)}" } end end end end
Version data entries
12 entries across 12 versions & 1 rubygems