lib/rdf/rdfxml/patches/nokogiri_hacks.rb
##
# Monkey patch attribute_with_ns, to insure nil is returned for #null?
#
# Get the attribute node with name and namespace
#
# @param [String] name
# @param [String] namespace
# @return [Nokogiri::XML::Attr]
Monkey patch attribute_with_ns, to insure nil is returned for #null.
Get the attribute node with name and namespace
Monkey patch attribute_with_ns to insure nil is returned for #null . Get the attribute node with name and namespace
def attribute_with_ns(name, namespace)
    a = attribute_with_ns_without_ffi_null(name, namespace)
    (a.respond_to?(:null?) && a.null?) ? nil : a 
  end
def attribute_with_ns ( name , namespace ) a = attribute_with_ns_without_ffi_null ( name , namespace ) ( a . respond_to? ( :null? ) && a . null? ) ? nil : a end
Monkey patch attribute_with_ns, to insure nil is returned for #null?
Monkey patch attribute_with_ns to insure nil is returned for #null?
# to ensure FFI Pointer compatibility
None
Nokogiri::XML::Attr
name
<not_specific>
namespace
<not_specific>
<not_specific>
None