Class: Peanuts::XML::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/peanuts/xml.rb

Direct Known Subclasses

LibXML::Writer

Class Method Summary collapse

Class Method Details

.new(*args, &block) ⇒ Object



54
55
56
57
58
59
# File 'lib/peanuts/xml.rb', line 54

def self.new(*args, &block)
  cls = self == Writer ? XML.default::Writer : self
  obj = cls.allocate
  obj.send(:initialize, *args, &block)
  obj
end