module Byebug::VarFunctions
def var_constant(str)
def var_constant(str) str ||= 'self.class' obj = bb_warning_eval(str) is_mod = obj.is_a?(Module) return errmsg(pr('variable.errors.not_module', object: str)) unless is_mod constants = bb_eval("#{str}.constants") puts prv(constants.sort.map { |c| [c, obj.const_get(c)] }) end