method
new
new(name, prefix=nil, uri=nil, attributes={}, children=[])
public
Hide source
# File lib/rss/xml.rb, line 10 def initialize(name, prefix=nil, uri=nil, attributes={}, children=[]) @name = name @prefix = prefix @uri = uri @attributes = attributes if children.is_a?(String) or !children.respond_to?(:each) @children = [children] else @children = children end end