Class: EacRubyUtils::CommonConcern

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_utils/common_concern.rb

Defined Under Namespace

Classes: Setup

Constant Summary collapse

CLASS_METHODS_MODULE_NAME =
'ClassMethods'
INSTANCE_METHODS_MODULE_NAME =
'InstanceMethods'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&after_callback) ⇒ CommonConcern

Returns a new instance of CommonConcern.



14
15
16
# File 'lib/eac_ruby_utils/common_concern.rb', line 14

def initialize(&after_callback)
  @after_callback = after_callback
end

Instance Attribute Details

#after_callbackObject (readonly)

Returns the value of attribute after_callback.



12
13
14
# File 'lib/eac_ruby_utils/common_concern.rb', line 12

def after_callback
  @after_callback
end

Instance Method Details

#setup(a_module) ⇒ Object



18
19
20
# File 'lib/eac_ruby_utils/common_concern.rb', line 18

def setup(a_module)
  Setup.new(self, a_module).run
end