Sha256: 6493c79717b8dc986b79df56c2b75d8bd085021dff21410f788f957afe16f0b0
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
module LibXML # :nodoc: module XML # :nodoc: class Node alias_method :element_name, :name end class Attributes # Helper method for removing attributes def remove(name) attribute = get_attribute(name.to_s) attribute.remove! if attribute end alias_method :old_hash_set, :[]= def []=(name, val) val.nil? ? remove(name.to_s) : old_hash_set(name.to_s, val.to_s) end end #Attributes end #XML end #LibXML
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blather-0.2.1 | lib/blather/core_ext/libxml.rb |