Sha256: b2c51a189c78b3f97ed2e0408853efb3168c1df30f16d95eb5a4154a711afcc2
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
module Flexparser # # Class to build handle turn a given object into # a Fragment. Used mostly as a Safeguard. # class FragmentBuilder class << self def build(str, namespaces: {}) return str if str.is_a?(Fragment) return EmptyFragment.new(str) if str.nil? Fragment.new(str, namespaces: namespaces) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexparser-1.0.2 | lib/flexparser/fragment_builder.rb |