Class: Peanuts::XML::Writer
- Inherits:
-
Object
- Object
- Peanuts::XML::Writer
- Defined in:
- lib/peanuts/xml.rb
Direct Known Subclasses
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 |