Top Level Namespace

Defined Under Namespace

Modules: Rouge

Instance Method Summary collapse

Instance Method Details

#lexer_dir(path = '') ⇒ Object


42
43
44
# File 'lib/rouge.rb', line 42

def lexer_dir(path = '')
  File.join(__dir__, 'rouge', 'lexers', path)
end

#load_relative(path) ⇒ Object

mimic Kernel#require_relative API


38
39
40
# File 'lib/rouge.rb', line 38

def load_relative(path)
  load File.join(__dir__, "#{path}.rb")
end