Pregunta

What would be the equvivalent of Module#prepend in ruby 1.8?

¿Fue útil?

Solución

See alias_method_chain implementation in Rails.

http://codelevy.com/2013/02/26/ruby2.0-vs-alias_method_chain.html

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top