lib/parlour/rbi_generator/module_namespace.rb in parlour-4.0.1 vs lib/parlour/rbi_generator/module_namespace.rb in parlour-5.0.0.beta.1

- old
+ new

@@ -1,15 +1,15 @@ # typed: true module Parlour - class RbiGenerator + class RbiGenerator < Generator # Represents a module definition. class ModuleNamespace < Namespace extend T::Sig sig do params( - generator: RbiGenerator, + generator: Generator, name: String, final: T::Boolean, interface: T::Boolean, block: T.nilable(T.proc.params(x: ClassNamespace).void) ).void @@ -93,9 +93,14 @@ # Returns a human-readable brief string description of this module. # @return [String] def describe "Module #{name} - #{"interface, " if interface}#{children.length} " + "children, #{includes.length} includes, #{extends.length} extends" + end + + sig { override.void } + def generalize_from_rbi! + super end end end end