## Problem I have some files in the "models" directory that are not true a `Class`. For example, a [`dry-types`](https://dry-rb.org/gems/dry-types/1.2/sum/) sum type: ```ruby # app/models/foo.rb Foo = Types::String | Types::Integer ``` This results in the following line when I annotate. ``` Unable to annotate app/models/foo.rb: undefined method `<' for #<Dry::Struct::Sum:0x00007ff2dd262988> ``` Not a blocking issue but somewhat annoying nonetheless. ## Solution When annotating a file, check that the file's object is a `Class` to ensure it has the interface we expect.
| Name |
Last commit
|
Last update |
|---|---|---|
| .github | Loading commit data... | |
| bin | Loading commit data... | |
| lib | Loading commit data... | |
| spec | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .document | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .overcommit.yml | Loading commit data... | |
| .rbenv-gemsets | Loading commit data... | |
| .rspec | Loading commit data... | |
| .rubocop.yml | Loading commit data... | |
| .rubocop_todo.yml | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| .yardopts | Loading commit data... | |
| AUTHORS.md | Loading commit data... | |
| CHANGELOG.md | Loading commit data... | |
| Gemfile | Loading commit data... | |
| Guardfile | Loading commit data... | |
| LICENSE.txt | Loading commit data... | |
| README.md | Loading commit data... | |
| RELEASE.md | Loading commit data... | |
| Rakefile | Loading commit data... | |
| annotate.gemspec | Loading commit data... | |
| potato.md | Loading commit data... |