rdoc/rdoc — Issue #104: RDoc::NormalModule#path error
Author: trans
Created: 2012-03-07 18:37:58+00:00
State: open

Not sure if this is supposed to be an error, but it seems like maybe it should not.

```
trans@logisys:sample$ irb
>> gem 'rdoc'
>> require 'rdoc'
>> ri = ::RDoc::RI::Store.new('.rdoc')
=> #
>> ri.load_cache
=> {:ancestors=>{"FishSampler::Fish"=>["Object"], "FishSampler::RedFish"=>["Object"], "FishSampler::BlueFish"=>["FishSampler::Fish"], "FishSampler::OldFish"=>["FishSampler::Fish"], "FishSampler::NewFish"=>["FishSampler::Fish"], "FishSampler::Shark"=>["FishSampler::Fish", "FishSampler::ManEater"], "Numeric"=>["Numeric::Multipliers", "Object"]}, :attributes=>{"FishSampler::Fish"=>["attr_accessor properties", "attr_accessor qualities"], "FishSampler::RedFish"=>["attr_accessor qualities"], "FishSampler::BlueFish"=>["attr_accessor qualities"], "FishSampler::OldFish"=>["attr_accessor qualities"], "FishSampler::NewFish"=>["attr_accessor qualities"], "FishSampler"=>["attr_reader fishy_active"]}, :class_methods=>{"FishSampler::Fish"=>["new"], "FishSampler"=>["fishy_active"]}, :encoding=>#, :instance_methods=>{"FishSampler::Fish"=>["initialize_qualities", "properties", "qualities"], "FishSampler::RedFish"=>["initialize_qualities", "qualities"], "FishSampler::BlueFish"=>["initialize_qualities", "qualities"], "FishSampler::OldFish"=>["initialize_qualities", "qualities"], "FishSampler::NewFish"=>["initialize_qualities", "qualities"], "FishSampler::Shark"=>["initialize_qualities"], "FishSampler::ManEater"=>["initialize_qualities"], "Numeric::Multipliers"=>["atto", "centi", "deci", "deka", "exa", "exbi", "femto", "gibi", "giga", "hecto", "kibi", "kilo", "mebi", "mega", "micro", "milli", "nano", "pebi", "peta", "pico", "tebi", "tera"]}, :modules=>["FishSampler", "FishSampler::BlueFish", "FishSampler::Fish", "FishSampler::ManEater", "FishSampler::NewFish", "FishSampler::OldFish", "FishSampler::RedFish", "FishSampler::Shark", "Numeric", "Numeric::Multipliers"]}
>> k = ri.load_class(ri.modules.first)
=> #] methods: [] aliases: []>
>> k.path
NoMethodError: undefined method `generator' for nil:NilClass
from /home/trans/.rbfu/rubies/1.9.3-p0/lib/ruby/gems/gems/rdoc-3.12/lib/rdoc/class_module.rb:477:in `path'
from (irb):10
from /home/trans/.rbfu/rubies/1.9.3-p0/bin/irb:12:in `

'
```