From 23863ff75d3ec9205d5f365b98b6608e38a93749 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 5 Sep 2016 10:35:30 +0000 Subject: * lib/rdoc/*, test/rdoc/*: Update rdoc/rdoc master(f191513) https://github.com/rdoc/rdoc/blob/master/History.rdoc#423--2016-- https://github.com/rdoc/rdoc/blob/master/History.rdoc#422--2016-02-09 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/context/section.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/rdoc/context/section.rb') diff --git a/lib/rdoc/context/section.rb b/lib/rdoc/context/section.rb index 90f184cb89..7c3c8c603d 100644 --- a/lib/rdoc/context/section.rb +++ b/lib/rdoc/context/section.rb @@ -58,6 +58,8 @@ class RDoc::Context::Section self.class === other and @title == other.title end + alias eql? == + ## # Adds +comment+ to this section @@ -128,6 +130,10 @@ class RDoc::Context::Section "#<%s:0x%x %p>" % [self.class, object_id, title] end + def hash # :nodoc: + @title.hash + end + ## # The files comments in this section come from -- cgit v1.2.3