lib/ruby_indexer/lib/ruby_indexer/entry.rb in ruby-lsp-0.14.5 vs lib/ruby_indexer/lib/ruby_indexer/entry.rb in ruby-lsp-0.14.6

- old
+ new

@@ -38,9 +38,25 @@ extend T::Sig extend T::Helpers abstract! + sig { returns(T::Array[String]) } + attr_accessor :included_modules + + sig do + params( + name: String, + file_path: String, + location: Prism::Location, + comments: T::Array[String], + ).void + end + def initialize(name, file_path, location, comments) + super(name, file_path, location, comments) + @included_modules = T.let([], T::Array[String]) + end + sig { returns(String) } def short_name T.must(@name.split("::").last) end end