Skip to content

Commit

Permalink
Add RDF::IRI as a class alias for RDF::URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Mar 19, 2013
1 parent 9768c75 commit 58f757f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/rdf/model/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -148,14 +149,6 @@ def initialize(uri_or_options)
end
end

##
# Returns `false`.
#
# @return [Boolean] `true` or `false`
def anonymous?
false
end

##
# Returns `true`.
#
Expand Down Expand Up @@ -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

0 comments on commit 58f757f

Please sign in to comment.