lib/json/ld/extensions.rb in json-ld-0.0.6 vs lib/json/ld/extensions.rb in json-ld-0.0.7
- old
+ new
@@ -29,9 +29,15 @@
# Get type(s) of subject, returns a list of symbols
def type_of(subject)
query(:subject => subject, :predicate => RDF.type).map {|st| st.object}
end
end
+
+ class URI
+ def to_s
+ @uri.to_s
+ end
+ end
end
if RUBY_VERSION < "1.9"
class InsertOrderPreservingHash < Hash
include Enumerable
\ No newline at end of file