module Byebug::Helpers::PathHelper

def all_files

def all_files
  @all_files ||= gem_files + test_files
end

def bin_file

def bin_file
  @bin_file ||= File.join(root_path, 'bin', 'byebug')
end

def gem_files

def gem_files
  @gem_files ||= [bin_file] + lib_files
end

def glob_for(dir)

def glob_for(dir)
  Dir.glob(File.join(root_path, dir, '**', '*.rb'))
end

def lib_files

def lib_files
  @lib_files ||= glob_for('lib')
end

def root_path

def root_path
  @root_path ||= File.expand_path(File.join('..', '..', '..'), __dir__)
end

def test_files

def test_files
  @test_files ||= glob_for('test')
end