Priority
Normal
Type
Bug 
State
Open 
Assignee
Oleg Shpynov 
Subsystem
Code Insight 
Affected versions
Fix for
  • Submitted by   Roman Chernyatchik
    14 months ago (29 May 2009 20:47)
  • Updated by   chen libing
    4 months ago (15 Mar 2010 18:40)
  • Jira: RUBY-4164
    (history, comments)
RUBY-4164 Autocompletion for module doesn't work if in context defined module and method with the same names
1
def Hpricot(input = nil, opts = {}, &blk)
end

module Hpricot
  class Env
  end
end

p defined? Hpricot::Env #"constant"
p defined? Hpricot() # "method"
p defined? Hpricot #"constant"

This is real use case from hpricot gem.
Comments (3)
 
History
 
Linked Issues (0)
 
Oleg Shpynov
  Oleg Shpynov
08 Jun 2009 14:17
(13 months ago)
too synthetic example
Roman Chernyatchik
  Roman Chernyatchik
08 Jun 2009 14:24
(13 months ago)
Just real live ;) see hpricot gem
chen libing
  chen libing
15 Mar 2010 18:40
(4 months ago)
I think it is common in Ruby, following Nokogiri is HTML Parser, code from github:

module Nokogiri

end
def Nokogiri(*args, &block)
end