Parent

Methods

Kramdown

Public Class Methods

data_dir() click to toggle source

Return the data directory for kramdown.

# File lib/kramdown/document.rb, line 51
def self.data_dir
  unless defined?(@@data_dir)
    require 'rbconfig'
    @@data_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'data', 'kramdown'))
    @@data_dir = File.expand_path(File.join(Config::CONFIG["datadir"], "kramdown")) if !File.exists?(@@data_dir)
    raise "kramdown data directory not found! This is a bug, please report it!" unless File.directory?(@@data_dir)
  end
  @@data_dir
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.