Sha256: d997d6107200dda4cc6dd46c2a8f4a60a17da637deb20f7c96cb8145b63ef11c
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
module IqRdf class Literal class URI < Literal def initialize(uri) raise "#{uri.inspect} is not an URI" unless uri.is_a?(::URI) super(uri) end def to_s(parent_lang = nil) "<#{@obj.to_s}>" end def build_xml(xml, &block) block.call("rdf:resource" => @obj.to_s) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems