Sha256: 97efe875a6d03a6d8a5c5425d864c1a1f3f1d71e86552be5225cb29a9a433637

Contents?: true

Size: 849 Bytes

Versions: 3

Compression:

Stored size: 849 Bytes

Contents

#   Copyright 2011 innoQ Deutschland GmbH
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

module IqRdf
  # This is a dummy class for some needs where
  class PlainTurtleLiteral < Literal

    def initialize(obj)
      @obj = obj
    end

    def to_s(lang = nil)
      @obj.to_s
    end

    alias_method :full_uri, :to_s

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iq_rdf-0.1.2 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.1.0 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.0.15 lib/iq_rdf/plain_turtle_literal.rb