You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some y-rb object constructors are defined by the Class#new method. This causes some troubles when using common inheritance patterns:
classMyAwareness < Y::Awareness# need to explicitly define new as the defined singelton method does not expect any argumentsself.new(argument)…endend
Instead of declaring #new, we want o just create a regular #initializer method. But, if the new constructor takes an argument and the parent class constructor does not, we end up with an error.
The text was updated successfully, but these errors were encountered:
Some
y-rb
object constructors are defined by theClass#new
method. This causes some troubles when using common inheritance patterns:Instead of declaring
#new
, we want o just create a regular#initializer
method. But, if the new constructor takes an argument and the parent class constructor does not, we end up with an error.The text was updated successfully, but these errors were encountered: