This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
thor_classes_in(klass)
public
Returns the thor classes declared inside the given class.
# File lib/bundler/vendor/thor/lib/thor/util.rb, line 74
def thor_classes_in(klass)
stringfied_constants = klass.constants.map(&:to_s)
Bundler::Thor::Base.subclasses.select do |subclass|
next unless subclass.name
stringfied_constants.include?(subclass.name.gsub("#{klass.name}::", ""))
end
end