Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict Rouge formatters to values in Rouge::Formatters namespace
ff0218a added support for specifying custom Rouge formatters, but it did not actually enforce this constraint. For example, this is valid: ```ruby Rouge::Formatters.const_get('CSV') => CSV ``` Adding the `false` parameter to `const_get` prevents this: ```ruby Rouge::Formatters.const_get('CSV', false) NameError: uninitialized constant Rouge::Formatters::CSV ```
- Loading branch information