Displaying 1 result from an estimated 1 matches for "prepend_features".
2013 Jun 08
1
ActiveSupport::Concern support Module#prepend?
...ve_support/concern.rb
My monkey patch work for what I''m trying to do but I suspect a better
implementation would actually have @_dependencies be an array of arrays
with each set being the module in the first element then :include or
:prepend in the send. Then when `append_features` or `prepend_features`
iterates over @_dependencies the send element will be used to call the
proper inclusion method.
The only wild card is how ClassMethods will get extended. My understanding
is that extend will append class methods to the base class. I cannot seem
to find a prepend version of extend.
Thoughts?...