class Nokogiri::HTML::EntityLookup
def [] name
##
def [] name (val = get(name)) && val.value end
def get(key) # :nodoc:
def get(key) # :nodoc: ptr = LibXML.htmlEntityLookup(key.to_s) return nil if ptr.null? cstruct = LibXML::HtmlEntityDesc.new(ptr) EntityDescription.new cstruct[:value], cstruct[:name], cstruct[:desc] end