Class: Paramedic::XMLMasseuse
- Inherits:
-
Object
- Object
- Paramedic::XMLMasseuse
- Defined in:
- lib/paramedic/xml_masseuse.rb
Instance Method Summary collapse
-
#initialize(xml, opts = {}) ⇒ XMLMasseuse
constructor
A new instance of XMLMasseuse.
- #to_xml ⇒ Object
Constructor Details
#initialize(xml, opts = {}) ⇒ XMLMasseuse
6 7 8 9 |
# File 'lib/paramedic/xml_masseuse.rb', line 6 def initialize(xml, opts={}) @xml = xml = opts.fetch(:escape_tags, []) end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/paramedic/xml_masseuse.rb', line 11 def to_xml strip_tag_spacing( ( Nokogiri::XML(remove_naked_ampersands(xml), &:noblanks) ) ) end |