class Nokogiri::XML::NodeSet

def last

Get the last element of the NodeSet.
##
def last
  self[-1]
end