Sha256: f94dcf54328fabe0c4fcade1c06ac1712e3c28192dbc798786a3d57162106fb5
Contents?: true
Size: 474 Bytes
Versions: 6
Compression:
Stored size: 474 Bytes
Contents
module RDFS # External resource class class MyExternalResource include ResourceLike # uri of the resource attr_reader :uri # adding accessor to the class uri: # the uri of the rdf resource being represented by this class class << self attr_accessor :class_uri end # creates new resource representing an RDF resource def initialize uri @uri = uri end def to_s "<#{uri}>" end end end
Version data entries
6 entries across 6 versions & 1 rubygems