I know that if you use super in Ruby it means call the parent's same method.
But in some code I see this:
def self.post(*args); handle_response super end
I wonder what the super means here?
From stackoverflow
-
superinvokes the superclass method; sosuperreturns what the superclass method returns.Here, the
postmethod defined on the superclass is invoked and its return value is passed on to thehandle_responsemethod.
0 comments:
Post a Comment