sord
sord copied to clipboard
Constant types
It would be good to be able to specify types for constants - currently they're all untyped.
Support for this in RBS added by #130, so just needs RBI.
Was going to submit a bug about this. I found it odd that sord --rbs
cannot output the type of constants, even when they have literal values (ex: a literal Regexp), and also cannot infer the types of constants when their value is a method call which has a YARD @return
tag.