lib/tdp/application.rb
# Warn about deprecated use of top level constant names.
Warn about deprecated use of top level constant names.
Warn about deprecated use of top level constant names .
def const_warning(const_name)
      @const_warning ||= false
      if ! @const_warning
        $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
          %{found at: #{tdp_file_location}} 
        $stderr.puts %{    Use --classic-namespace on tdp command}
        $stderr.puts %{    or 'require "tdp/classic_namespace"' in TDPfile}
      end
      @const_warning = true
    end
def const_warning ( const_name ) @const_warning ||= false if ! @const_warning $stderr . puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } + %{found at: #{tdp_file_location}} $stderr . puts %{    Use --classic-namespace on tdp command} $stderr . puts %{    or 'require "tdp/classic_namespace"' in TDPfile} end @const_warning = true end
Warn about deprecated use of top level constant names.
Warn about deprecated use of top level constant names .
# '
const_name
<not_specific>