Question

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

Était-ce utile?

La solution

See alias_method_chain implementation in Rails.

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top