Sha256: edafce2ca14556b69579c471a61cf1c5add8c9bd10dc22c6a18945bb51724bd0
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
module Moxml class Cdata < Node def initialize(content_or_native = nil) case content_or_native when String super(adapter.create_cdata(nil, content_or_native)) else super(content_or_native) end end def content adapter.cdata_content(native) end def content=(text) adapter.set_cdata_content(native, text) self end def blank? content.strip.empty? end def cdata? true end def text? false end private def create_native_node adapter.create_cdata(nil, "") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moxml-0.1.0 | lib/moxml/cdata.rb |