Class: Base4R::UrlAttribute

Inherits:
Attribute show all
Defined in:
lib/attribute.rb

Overview

UrlAttribute represents a URL

Instance Attribute Summary

Attributes inherited from Attribute

#name, #namespace, #options, #private_attribute, #value

Instance Method Summary collapse

Methods inherited from Attribute

#private_attribute?, to_xml, #type_name, type_name, #type_name=

Methods included from AdditionalXmlAttributeMethods

#additional_xml_attribute_map, included, #xml_attribute_value, #xml_attributes

Methods included from ChildAttributeMethods

#add_child, #add_child_attribute, #child, #children, #children_map, #children_names, included

Instance Method Details

#to_xml(parent, options = {}) ⇒ Object



260
261
262
263
264
# File 'lib/attribute.rb', line 260

def to_xml(parent, options={})
  el = super(parent, options.merge(:force => true))
  el.text = nil
  el
end