Module: RBS::Inline::NodeUtils
- Defined in:
- lib/rbs/inline/node_utils.rb,
sig/generated/rbs/inline/node_utils.rbs
Instance Method Summary collapse
Instance Method Details
#type_name(node) ⇒ TypeName?
8 9 10 11 12 13 |
# File 'lib/rbs/inline/node_utils.rb', line 8 def type_name(node) case node when Prism::ConstantReadNode TypeName.parse(node.name.to_s) end end |