Class: Spoom::Sorbet::Sigs::SigTranslator
- Inherits:
-
Object
- Object
- Spoom::Sorbet::Sigs::SigTranslator
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/sorbet/sigs.rb
Class Method Summary collapse
Class Method Details
.translate(sig, node) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/spoom/sorbet/sigs.rb', line 88 def translate(sig, node) case node when RBI::Method translate_method_sig(sig, node) when RBI::Attr translate_attr_sig(sig, node) end end |