Method: RDF::Repository::Implementation#graph?
- Defined in:
- lib/rdf/repository.rb
#graph? ⇒ Boolean #graph?(name) ⇒ Boolean Also known as: has_graph?
304 305 306 307 308 309 310 |
# File 'lib/rdf/repository.rb', line 304 def graph?(*args) case args.length when 0 then false when 1 then @data.key?(args.first) else raise ArgumentError("wrong number of arguments (given #{args.length}, expected 0 or 1)") end end |