method
new
v2_5_5 -
Show latest stable
- Class:
RSS::XML::Element
new(name, prefix=nil, uri=nil, attributes={}, children=[])public
No documentation available.
# 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