Module: PinchHitter::Message::Xml
- Included in:
- MessageStore
- Defined in:
- lib/pinch_hitter/message/xml.rb
Instance Method Summary collapse
Instance Method Details
#xml_message(file, overrides = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/pinch_hitter/message/xml.rb', line 6 def (file, overrides={}) xml = load_xml_file(file) overrides.each do |key, text| replace_xml(xml, key, text) end xml.to_s end |