Module: RBS::Inline::NodeUtils

Defined in:
lib/rbs/inline/node_utils.rb

Instance Method Summary collapse

Instance Method Details

#type_name(node) ⇒ Object



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(node.name.to_s)
  end
end