Skip to content

Commit

Permalink
Avoid stomping on Kernel.p
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Oct 7, 2011
1 parent c95606d commit 738e654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rdoc/include.rb
Expand Up @@ -79,12 +79,12 @@ def module
end

# go up the hierarchy of names
p = parent.parent
while p
full_name = p.child_name(@name)
up = parent.parent
while up
full_name = up.child_name(@name)
@module = RDoc::TopLevel.modules_hash[full_name]
return @module if @module
p = p.parent
up = up.parent
end

@name
Expand Down

0 comments on commit 738e654

Please sign in to comment.