Sha256: 75fb3327fc834c9d99f95f2f48c4390f9090900fc03c2a4e9b147ee785dc933d
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
module RBS class Factory def type_name(string) absolute = string.start_with?("::") *path, name = string.delete_prefix("::").split("::").map(&:to_sym) name or raise TypeName.new( name: name, namespace: Namespace.new(path: path, absolute: absolute) ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbs-2.6.0 | lib/rbs/factory.rb |