Class: XML::MappingExtensions::UriNode
- Inherits:
-
NodeBase
- Object
- XML::Mapping::SingleAttributeNode
- NodeBase
- XML::MappingExtensions::UriNode
- Defined in:
- lib/xml/mapping_extensions/uri_node.rb
Overview
Coverts URI strings to URI
objects.
Instance Method Summary collapse
-
#to_value(xml_text) ⇒ URI
The URI.
Methods inherited from NodeBase
#extract_attr_value, #initialize, #set_attr_value, #to_xml_text
Constructor Details
This class inherits a constructor from XML::MappingExtensions::NodeBase
Instance Method Details
#to_value(xml_text) ⇒ URI
Returns the URI.
12 13 14 |
# File 'lib/xml/mapping_extensions/uri_node.rb', line 12 def to_value(xml_text) URI(xml_text.strip) end |