Skip to content

Commit d71f8a1

Browse files
committed
Merge branch 'pulls/232' into develop
1 parent 58dec2d commit d71f8a1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/rdf/model/uri.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,17 +834,15 @@ def value
834834
#
835835
# @return [Fixnum]
836836
def hash
837-
return @hash ||= (to_s.hash * -1)
837+
@hash ||= (value.hash * -1)
838838
end
839839

840840
##
841841
# Returns object representation of this URI, broken into components
842842
#
843843
# @return [Hash{Symbol => String}]
844844
def object
845-
@object ||= begin
846-
parse @value
847-
end
845+
@object ||= parse(@value)
848846
end
849847
alias_method :to_hash, :object
850848

0 commit comments

Comments
 (0)