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/glfm_markdown/loader.rb', line 3

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