Displaying 2 results from an estimated 2 matches for "_included_block".
2012 Sep 28
0
Overriding class_attribute writers and order of super/extend C.M./included block eval in ActiveSupport::Concern
...fferent and maybe then I could just override things in the ClassMethods
module for class methods and the main block of the module for instance
methods:
super
base.extend const_get("ClassMethods") if
const_defined?("ClassMethods")
base.class_eval(&@_included_block) if
instance_variable_defined?("@_included_block")
And there are classes like this that only benefit from the dependency
handling and included block class_eval part of Concern that maybe could
benefit from that being split up somehow?:
actionpack/lib/abstract_controller/asset_paths.r...
2012 Sep 20
2
append_features(mod)
append_features(mod)
The documentation says:
When this module is included in another, Ruby calls append_features in
this module, passing it the receiving module in mod. Ruby’s default
implementation is to add the constants, methods, and module variables
of this module to mod if this module has not already been added to mod
or one of its ancestors. See also Module#include.
What if this module is