Aaron Christiansen
Aaron Christiansen
Thank you! I'll give this a try when I can. ---- > A nice addition to this would be to parse out the sigs and add YARD param/return type decorations...
This is certainly a tricky one. I'm not too familiar with how `type_member` works, but my understanding is that, for an array, `Elem` should be set to the type of...
Nice catch - this seems like a YARD problem. I can't find an existing issue about this so I'll open one.
#155 has now been merged, which might make this possible if you're using RBS, since it will now load types from the gem collection.
Support for this in RBS added by #130, so just needs RBI.
Changing `name` to `path` in https://github.com/AaronC81/sord/blob/master/lib/sord/rbi_generator.rb#L68-L73 produces this result instead: ```ruby class ListCommand < LibraryCommand include YARD::Templates::Helpers::BaseHelper # ... end ``` This is probably better than the current behaviour, but...
Typed structs seem to suit this best, but from the docs I can't see how you can model hashes with them, only structs. Is there an example of using them...
> options.comments is still a type error, despite being valid Ruby Is that valid Ruby? At least with Ruby's built-in hashes, I don't believe it's possible to access hash keys...
Whoops, that is documented incorrectly then! I'll change that. That method shouldn't be passed a Hash; rather, it's expecting a `Commander::Command::Options` instance, which is essentially a container for a Hash...
That'd be a good plan! I've just opened #65 for this.