Module: PrettyXML

Defined in:
lib/config.rb,
lib/printers/xhtml.rb,
lib/printers/pretty_print.rb

Defined Under Namespace

Classes: PrettyPrint, XHTML

Class Method Summary collapse

Class Method Details

.etcObject



8
9
10
# File 'lib/config.rb', line 8

def self.etc
  File.join(root, 'etc')
end

.load_config(config) ⇒ Object



12
13
14
# File 'lib/config.rb', line 12

def self.load_config(config)
  YAML.load(File.read(File.join(PrettyXML.etc, config)))
end

.rootObject



4
5
6
# File 'lib/config.rb', line 4

def self.root
  File.expand_path '../..', __FILE__
end