Module: Byebug::Helpers::PathHelper
- Included in:
- Context, RestartCommand
- Defined in:
- lib/byebug/helpers/path.rb
Overview
Utilities for managing gem paths
Instance Method Summary collapse
- #all_files ⇒ Object
- #bin_file ⇒ Object
- #gem_files ⇒ Object
- #lib_files ⇒ Object
- #root_path ⇒ Object
- #test_files ⇒ Object
Instance Method Details
#all_files ⇒ Object
29 30 31 |
# File 'lib/byebug/helpers/path.rb', line 29 def all_files @all_files ||= gem_files + test_files end |
#bin_file ⇒ Object
9 10 11 |
# File 'lib/byebug/helpers/path.rb', line 9 def bin_file @bin_file ||= File.join(root_path, "exe", "byebug") end |
#gem_files ⇒ Object
25 26 27 |
# File 'lib/byebug/helpers/path.rb', line 25 def gem_files @gem_files ||= [bin_file] + lib_files end |
#lib_files ⇒ Object
17 18 19 |
# File 'lib/byebug/helpers/path.rb', line 17 def lib_files @lib_files ||= glob_for("lib") end |
#root_path ⇒ Object
13 14 15 |
# File 'lib/byebug/helpers/path.rb', line 13 def root_path @root_path ||= File.(File.join("..", "..", ".."), __dir__) end |
#test_files ⇒ Object
21 22 23 |
# File 'lib/byebug/helpers/path.rb', line 21 def test_files @test_files ||= glob_for("test") end |