lib/parlour/rbi_generator/class_namespace.rb in parlour-5.0.0.beta.6 vs lib/parlour/rbi_generator/class_namespace.rb in parlour-5.0.0

- old
+ new

@@ -8,10 +8,11 @@ sig do params( generator: Generator, name: String, final: T::Boolean, + sealed: T::Boolean, superclass: T.nilable(String), abstract: T::Boolean, block: T.nilable(T.proc.params(x: ClassNamespace).void) ).void end @@ -19,16 +20,17 @@ # @note You should use {Namespace#create_class} rather than this directly. # # @param generator [RbiGenerator] The current RbiGenerator. # @param name [String] The name of this class. # @param final [Boolean] Whether this namespace is final. + # @param sealed [Boolean] Whether this namespace is sealed. # @param superclass [String, nil] The superclass of this class, or nil if it doesn't # have one. # @param abstract [Boolean] A boolean indicating whether this class is abstract. # @param block A block which the new instance yields itself to. # @return [void] - def initialize(generator, name, final, superclass, abstract, &block) - super(generator, name, final, &block) + def initialize(generator, name, final, sealed, superclass, abstract, &block) + super(generator, name, final, sealed, &block) @superclass = superclass @abstract = abstract end sig do