Top Level Namespace

Defined Under Namespace

Modules: GLFMMarkdown

Instance Method Summary collapse

Instance Method Details

#load_rust_extensionObject



3
4
5
6
7
8
# File 'lib/gitlab_glfm_markdown/loader.rb', line 3

def load_rust_extension
  ruby_version = /(\d+\.\d+)/.match(RUBY_VERSION)
  require "gitlab_glfm_markdown/#{ruby_version}/gitlab_glfm_markdown"
rescue LoadError
  require 'gitlab_glfm_markdown/gitlab_glfm_markdown'
end