lib/rouge.rb in rouge-3.18.0 vs lib/rouge.rb in rouge-3.19.0
- old
+ new
@@ -10,12 +10,12 @@
# on every call.
LIB_DIR = __dir__.freeze
class << self
def reload!
- Object.send :remove_const, :Rouge
- load __FILE__
+ Object::send :remove_const, :Rouge
+ Kernel::load __FILE__
end
# Highlight some text with a given lexer and formatter.
#
# @example
@@ -38,10 +38,10 @@
# Load a file relative to the `lib/rouge` path.
#
# @api private
def load_file(path)
- load File.join(LIB_DIR, "rouge/#{path}.rb")
+ Kernel::load File.join(LIB_DIR, "rouge/#{path}.rb")
end
# Load the lexers in the `lib/rouge/lexers` directory.
#
# @api private