We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58dec2d commit d71f8a1Copy full SHA for d71f8a1
1 file changed
lib/rdf/model/uri.rb
@@ -834,17 +834,15 @@ def value
834
#
835
# @return [Fixnum]
836
def hash
837
- return @hash ||= (to_s.hash * -1)
+ @hash ||= (value.hash * -1)
838
end
839
840
##
841
# Returns object representation of this URI, broken into components
842
843
# @return [Hash{Symbol => String}]
844
def object
845
- @object ||= begin
846
- parse @value
847
- end
+ @object ||= parse(@value)
848
849
alias_method :to_hash, :object
850
0 commit comments