module Byebug::Helpers::PathHelper
Utilities for managing gem paths
Public Instance Methods
all_files()
click to toggle source
# File lib/byebug/helpers/path.rb, line 31 def all_files @all_files ||= gem_files + test_files end
bin_file()
click to toggle source
# File lib/byebug/helpers/path.rb, line 7 def bin_file @bin_file ||= Gem.bin_path('byebug', 'byebug') end
ext_files()
click to toggle source
# File lib/byebug/helpers/path.rb, line 19 def ext_files @ext_files ||= expand_from_root('ext/**/*.{c,h,rb}') end
gem_files()
click to toggle source
# File lib/byebug/helpers/path.rb, line 27 def gem_files @gem_files ||= [bin_file] + lib_files + ext_files end
lib_files()
click to toggle source
# File lib/byebug/helpers/path.rb, line 15 def lib_files @lib_files ||= expand_from_root('lib/**/*.{rb,yml}') end
root_path()
click to toggle source
# File lib/byebug/helpers/path.rb, line 11 def root_path @root_path ||= File.expand_path('../..', bin_file) end
test_files()
click to toggle source
# File lib/byebug/helpers/path.rb, line 23 def test_files @test_files ||= expand_from_root('test/**/*.rb') end
Private Instance Methods
expand_from_root(glob)
click to toggle source
# File lib/byebug/helpers/path.rb, line 37 def expand_from_root(glob) Dir.glob(File.expand_path(glob, root_path)) end