Method: RDocF95::RI::Reader#get_class

Defined in:
lib/rdoc-f95/ri/reader.rb

#get_class(class_entry) ⇒ Object

Return a class description



54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/rdoc-f95/ri/reader.rb', line 54

def get_class(class_entry)
  result = nil
  for path in class_entry.path_names
    path = RiWriter.class_desc_path(path, class_entry)
    desc = File.open(path) {|f| RI::Description.deserialize(f) }
    if result
      result.merge_in(desc)
    else
      result = desc
    end
  end
  result
end