Class: Builder::XmlMarkup

Inherits:
Object
  • Object
show all
Defined in:
lib/pasaporte/hacks.rb

Overview

Hacks that are needed to make everything work swell Start an XML tag. We override to get “<stupidbrowserfriendly />” fwd slash

Instance Method Summary collapse

Instance Method Details

#_start_tag(sym, attrs, end_too = false) ⇒ Object



4
5
6
7
8
9
# File 'lib/pasaporte/hacks.rb', line 4

def _start_tag(sym, attrs, end_too=false)
  @target << "<#{sym}"
  _insert_attributes(attrs)
  @target << " /" if end_too #HIER!!
  @target << ">"
end