Class: EacRubyUtils::CommonConcern
- Defined in:
- lib/eac_ruby_utils/common_concern.rb,
lib/eac_ruby_utils/common_concern/class_setup.rb,
lib/eac_ruby_utils/common_concern/module_setup.rb
Defined Under Namespace
Classes: ClassSetup, ModuleSetup
Constant Summary collapse
- CLASS_METHODS_MODULE_NAME =
'ClassMethods'
- INSTANCE_METHODS_MODULE_NAME =
'InstanceMethods'
Instance Attribute Summary collapse
-
#after_callback ⇒ Object
readonly
Returns the value of attribute after_callback.
Instance Method Summary collapse
-
#initialize(&after_callback) ⇒ CommonConcern
constructor
A new instance of CommonConcern.
- #setup(a_module) ⇒ Object
Constructor Details
#initialize(&after_callback) ⇒ CommonConcern
Returns a new instance of CommonConcern.
12 13 14 |
# File 'lib/eac_ruby_utils/common_concern.rb', line 12 def initialize(&after_callback) @after_callback = after_callback end |
Instance Attribute Details
#after_callback ⇒ Object (readonly)
Returns the value of attribute after_callback.
10 11 12 |
# File 'lib/eac_ruby_utils/common_concern.rb', line 10 def after_callback @after_callback end |
Instance Method Details
#setup(a_module) ⇒ Object
16 17 18 |
# File 'lib/eac_ruby_utils/common_concern.rb', line 16 def setup(a_module) ::EacRubyUtils::CommonConcern::ModuleSetup.new(self, a_module).run end |