module XTemplate
Constants
- BIND_URI
- EscapedString
- Template
- TextNode
Public Instance Methods
Source
# File lib/xtemplate.rb, line 135 def dup_data(data, oids=[]) if( oids.include?(data.id) ) data else oids.push(data.id) case data when Hash data = data.dup data.each{|key,val| data[key] = dup_data(val,oids)} data when Array data = data.dup data.collect!{|val| dup_data(val,oids) } data # when Numeric, TrueClass, FalseClass # immutable objects # data else begin data.dup rescue TypeError data end end end end
Source
# File lib/xtemplate.rb, line 123 def use_default_expand() XNode::use_default_expand() end
Source
# File lib/xtemplate.rb, line 131 def use_default_xpath() XPath::use_default_xpath() end
Source
# File lib/xtemplate.rb, line 119 def use_simple_expand() XNode::use_simple_expand() end
Source
# File lib/xtemplate.rb, line 127 def use_simple_xpath() XPath::use_simple_xpath() end