Class: LibXML::XML::XPath::Object

Inherits:
BasicObject
Defined in:
lib/libxml/xquery/string_representation.rb

Instance Method Summary collapse

Instance Method Details

#to_s(sep = ' | ') ⇒ Object



45
46
47
# File 'lib/libxml/xquery/string_representation.rb', line 45

def to_s(sep = ' | ')
  map { |n| (c = n.to_s(sep)).empty? ? nil : c }.compact.join(sep)
end