Skip to content

Commit

Permalink
Simplify some inspects, which were causing problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 21, 2015
1 parent d5abad7 commit 9088383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rdf/spec/inspects.rb
Expand Up @@ -9,19 +9,19 @@ def inspect

class RDF::URI
def inspect
to_base
"RDF::URI(#{to_base})"
end
end

class RDF::Node
def inspect
to_base
"RDF::Node(#{to_base})"
end
end

class RDF::Graph
def inspect
"\n" + dump(RDF.const_defined?(:Turtle) ? :ttl : :ntriples, standard_prefixes: true) + "\n"
"RDF::Graph(graph_name: #{self.graph_name || 'nil'})"
end
end

Expand Down

0 comments on commit 9088383

Please sign in to comment.