Sha256: 5181fc965045141ac0e17b6b32defd97f64fc3e898d4ea7dc51591bdc3305cb4

Contents?: true

Size: 850 Bytes

Versions: 5

Compression:

Stored size: 850 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

5 entries across 5 versions & 1 rubygems

Version Path
iq_rdf-0.1.7 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.1.6 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.1.5 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.1.4 lib/iq_rdf/plain_turtle_literal.rb
iq_rdf-0.1.3 lib/iq_rdf/plain_turtle_literal.rb