diff options
Diffstat (limited to 'lib/rdoc/context/section.rb')
-rw-r--r-- | lib/rdoc/context/section.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |