Module: Kernel
- Defined in:
- lib/rbs/namespace.rb,
lib/rbs/type_name.rb
Instance Method Summary collapse
Instance Method Details
#Namespace(name) ⇒ Object
117 118 119 |
# File 'lib/rbs/namespace.rb', line 117 def Namespace(name) RBS::Namespace.parse(name) end |
#TypeName(string) ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/rbs/type_name.rb', line 91 def TypeName(string) absolute = string.start_with?("::") *path, name = string.delete_prefix("::").split("::").map(&:to_sym) raise unless name RBS::TypeName.new( name: name, namespace: RBS::Namespace.new(path: path, absolute: absolute) ) end |