I read some aliasing method like this:
alias :original_method :method
That looks like symbols in ruby for me. What's the difference if i typed that alias like this:
alias original_method method
Will the result be different?
There doesn't seem to be a difference, from the documentation:
The
alias
keyword is most frequently used to alias methods. When aliasing a method you can use either its name or a symbol:alias new_name old_name alias :new_name :old_name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With