module Byebug::Helpers::ReflectionHelper

Reflection utilitie

Public Instance Methods

commands() click to toggle source

List of “command” classes in the including module

# File lib/byebug/helpers/reflection.rb, line 11
def commands
  constants(false)
    .map { |const| const_get(const, false) }
    .select { |c| c.is_a?(Class) && c.name =~ /[a-z]Command$/ }
end