jeffrey-s-foster/rtc — Issue #23: Allow annotations on modules
Author: jtoman
Created: 2012-03-08 20:11:49+00:00
State: open

Currently Rtc allows only the annotation of classes. It should also allow the annotation of modules. This will also let us do the following:

```ruby
class IncluderClass
includes :module1,:module2,...
end
```
The `includes` will look up the modules, and for each module add the method annotations of that module to the current class (or theoretically, another module). Different handling for conflicting signatures will be required for this to work. That is, if module `Foo` defines a method `bar` with some signature _sig1_ and class `A` also defines `bar` with signature _sig2_, and `A` includes `Foo`, then the signatures _sig1_ and _sig2_ should not be automatically intersected, but rather the signature from `A` should overwrite the signature from `Foo`.