class Flexparser::EmptyFragment

Used as a safeguard when passing nil or an empty string to the FragmentBuilder.

Public Instance Methods

empty?() click to toggle source
# File lib/flexparser/empty_fragment.rb, line 11
def empty?
  true
end
namespaces() click to toggle source
# File lib/flexparser/empty_fragment.rb, line 19
def namespaces
  {}
end
text() click to toggle source
# File lib/flexparser/empty_fragment.rb, line 15
def text
  nil
end
xpath(_path) click to toggle source
# File lib/flexparser/empty_fragment.rb, line 7
def xpath(_path)
  self.class.new(nil)
end