class Nokogiri::XML::NodeSet

def last

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