lib/tapioca/rbi_ext/model.rb in tapioca-0.10.5 vs lib/tapioca/rbi_ext/model.rb in tapioca-0.11.0
- old
+ new
@@ -3,10 +3,10 @@
module RBI
class Tree
extend T::Sig
- sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: Scope).void)).void }
+ sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: Scope).void)).returns(Scope) }
def create_path(constant, &block)
constant_name = Tapioca::Runtime::Reflection.name_of(constant)
raise "given constant does not have a name" unless constant_name
instance = ::Module.const_get(constant_name)