In: |
lib/amrita/xml.rb
|
Parent: | Object |
# File lib/amrita/xml.rb, line 85 def doctype(name, pub_sys, long_name, uri) s = SpecialElement.new('!', %[DOCTYPE #{name} #{pub_sys} #{long_name} #{uri}]) push(pop + s) end
# File lib/amrita/xml.rb, line 54 def result raise "can't happen @stack.size=#{@stack.size}" unless @stack.size == 1 top end
# File lib/amrita/xml.rb, line 67 def tag_end(name) body = pop element = pop element.init_body { body } push(pop + element) end
# File lib/amrita/xml.rb, line 59 def tag_start(name, attrs) a = attrs.collect do |key, val| Attr.new(key, convert(val)) end push e(name, *a) push Null end