class Nokogiri::XML::NodeSet
def first(n = nil)
##
def first(n = nil) return self[0] unless n list = [] [n, length].min.times { |i| list << self[i] } list end
def first(n = nil) return self[0] unless n list = [] [n, length].min.times { |i| list << self[i] } list end