Module: Cacofonix::DTDs
- Defined in:
- lib/cacofonix/dtds.rb,
lib/cacofonix/dtds/version.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.apply_libxml_env!(env = ENV) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/cacofonix/dtds.rb', line 11 def self.apply_libxml_env!(env = ENV) existing_value = env[libxml_env_key] if block_given? && existing_value && existing_value != xml_catalog_path yield existing_value end env[libxml_env_key] = xml_catalog_path end |
.libxml_env_key ⇒ Object
21 22 23 |
# File 'lib/cacofonix/dtds.rb', line 21 def self.libxml_env_key "XML_CATALOG_FILES" end |
.xml_catalog_path ⇒ Object
7 8 9 |
# File 'lib/cacofonix/dtds.rb', line 7 def self.xml_catalog_path File.("../../data/catalog.xml", __dir__) end |