method

get_constant

ruby latest stable - Class: Bundler::CLI::Console

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

get_constant(name)
public

No documentation available.

# File lib/bundler/cli/console.rb, line 31
    def get_constant(name)
      const_name = {
        "pry"  => :Pry,
        "ripl" => :Ripl,
        "irb"  => :IRB,
      }[name]
      Object.const_get(const_name)
    rescue NameError
      Bundler.ui.error "Could not find constant #{const_name}"
      exit 1
    end