Sha256: b6420793b900ab62d1144f129169164655d30db5045d5ddf83b40955ddb64a4d
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
module Flexparser # # Used as a safeguard when passing nil or an empty string # to the FragmentBuilder. # class EmptyFragment < Fragment def xpath(_path) self.class.new(nil) end def empty? true end def text nil end def namespaces {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flexparser-1.0.3 | lib/flexparser/empty_fragment.rb |
flexparser-1.0.2 | lib/flexparser/empty_fragment.rb |