HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/gems/railties-6.1.4.1/lib/rails/application/dummy_erb_compiler.rb
# frozen_string_literal: true

# These classes are used to strip out the ERB configuration
# values so we can evaluate the database.yml without evaluating
# the ERB values.
class DummyERB < ERB # :nodoc:
  def make_compiler(trim_mode)
    DummyCompiler.new trim_mode
  end
end

class DummyCompiler < ERB::Compiler # :nodoc:
  def compile_content(stag, out)
    if stag == "<%="
      out.push "_erbout << ''"
    end
  end
end