TODO: use [[:alpha:]] in all regexp to allow parsing of international values in 1.9.1 NOTE: use @src.pre_match only before other check/match?/... operations, otherwise the content is changed
The kramdown version.
Return the data directory for kramdown.
# File lib/kramdown/document.rb, line 35 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
Generated with the Darkfish Rdoc Generator 2.