class XML::Mapping::NumericNode

Node factory function synopsis:

numeric_node :_attrname_, _path_ [, :default_value=>_obj_]
                                 [, :optional=>true]
                                 [, :mapping=>_m_]

Like TextNode, but interprets the XML node's text as a number (Integer or Float, depending on the nodes's text) and maps it to an Integer or Float attribute.

Public Class Methods

new(*args) click to toggle source
Calls superclass method XML::Mapping::SingleAttributeNode.new
# File lib/xml/mapping/standard_nodes.rb, line 46
def initialize(*args)
  path,*args = super(*args)
  @path = XML::XXPath.new(path)
  args
end