Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add RDF::IRI as a class alias for RDF::URI.

  • Loading branch information...
commit 58f757fa177ec176d2d86c877871d7e41e2dc805 1 parent 9768c75
@gkellogg gkellogg authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/rdf/model/uri.rb
View
12 lib/rdf/model/uri.rb
@@ -19,6 +19,7 @@ module RDF
# @example Getting the string representation of a URI
# uri.to_s #=> "http://rdf.rubyforge.org/"
#
+ # http://en.wikipedia.org/wiki/Internationalized_Resource_Identifier
# @see http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
# @see http://www.ietf.org/rfc/rfc3986.txt
# @see http://www.ietf.org/rfc/rfc3987.txt
@@ -149,14 +150,6 @@ def initialize(uri_or_options)
end
##
- # Returns `false`.
- #
- # @return [Boolean] `true` or `false`
- def anonymous?
- false
- end
-
- ##
# Returns `true`.
#
# @return [Boolean] `true` or `false`
@@ -641,4 +634,7 @@ def method_missing(symbol, *args, &block)
end
end
end # URI
+
+ # RDF::IRI is a synonym for RDF::URI
+ IRI = URI
end # RDF
Please sign in to comment.
Something went wrong with that request. Please try again.