This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
forked from rouge-ruby/rouge
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load Rouge files using methods scoped to the Rouge module (rouge-ruby…
…#1481) Rouge currently uses two global methods defined in `lib/rouge.rb`, `#load_relative` and `#lexer_dir`, to load the various files in the Rouge library. Rather than add methods to the global namespace, it would be preferable if the loading methods were within the Rouge module. This commits adds two methods to Rouge's singleton class, `#load_file` and `#load_lexers`, and updates `lib/rouge.rb` to use these methods.
- Loading branch information
Showing
1 changed file
with
61 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters