lib/rouge.rb in rouge-2.0.2 vs lib/rouge.rb in rouge-2.0.3
- old
+ new
@@ -4,9 +4,14 @@
require 'pathname'
# The containing module for Rouge
module Rouge
class << self
+ def reload!
+ Object.send :remove_const, :Rouge
+ load __FILE__
+ end
+
# Highlight some text with a given lexer and formatter.
#
# @example
# Rouge.highlight('@foo = 1', 'ruby', 'html')
# Rouge.highlight('var foo = 1;', 'js', 'terminal256')