call parent constructor in ruby

Ruby doesn’t have constructors, therefore it’s obviously not possible to call them, parent or otherwise. Ruby does have methods, however, and in order to call the parent’s method with the same name as the currently executing method, you can use the super keyword. [Note: super without arguments is a shortcut for passing the same arguments that were passed into the currently executing method. If you actually want to pass no arguments, you have to do so explicitly: super().]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)